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>

原文地址:https://www.cnblogs.com/auto123-num/p/7308123.html