怎么全局引入scss文件?
Version
3.0.1
Reproduction link
https://github.com/zhoufanglu/vue3-demo
Steps to reproduce
- 版本
"style-resources-loader": "^1.3.2",
"vue-cli-plugin-style-resources-loader": "~0.1.4"
pluginOptions: {
'style-resources-loader': {
preProcessor: 'scss',
patterns: []
},
patterns: [
// scss文件路径
path.resolve(__dirname, "src/assets/scss/global.scss")
]
}
What is expected?
引入全局scss文件
What is actually happening?
在.vue中使用报错
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.