vue开发中css引用路径问题

1.在后缀名为.vue的文件中,直接使用import引入:

<style lang="less" scoped>

   @import '../assets/css/index.less'

</style>

或者

<style lang="scss" scoped>

   @import '../assets/css/index.scss'

</style>

或者

<style  scoped>

   @import '../assets/css/index.css'

</style>

posted @ 2017-08-08 17:46  海底流  阅读(2094)  评论(0编辑  收藏  举报