1、安装 style-resources-loader和vue-cli-plugin-style-resources-loader
2、vue.confing
pluginOptions: {
'style-resources-loader': {
preProcessor: 'scss',
patterns: [resolve('src/assets/scss/public-class.scss')]
}
}
1、安装 style-resources-loader和vue-cli-plugin-style-resources-loader
2、vue.confing
pluginOptions: {
'style-resources-loader': {
preProcessor: 'scss',
patterns: [resolve('src/assets/scss/public-class.scss')]
}
}
本文标题:VUE-CLI3.0引入全局预加载样式---以SCSS为例
本文链接:https://www.haomeiwen.com/subject/weppfrtx.html
网友评论