前端 2020-02-19
npm install node-sass --save-dev //安装node-sass npm install sass-loader --save-dev //安装sass-loader npm install style-loader --save-dev //安装style-loader
在vue项目全局中引入scss
1.全局引用时需要安装sass-resources-loader
npm install sass-resources-loader --save-dev
background-color: blue;background-color: yellow;<input type="button" value="变蓝" @click="changeColorT