配置vue.config.js
文件中写入:
module.exports = { ... //其他代码 css: { loaderOptions: { sass: { data: ` @import "@/config/common.scss";//@指向src目录 ` } } } }
配置vue.config.js
文件中写入:
module.exports = { ... //其他代码 css: { loaderOptions: { sass: { data: ` @import "@/config/common.scss";//@指向src目录 ` } } } }