1.安装sass依赖包
(sass-loader依赖于node-sass)
npm install --save-dev sass-loader
npm install --save-dev node-sass
2.在build文件夹下的webpack.base.conf.js的rules里面添加配置
{
test: /\.sass$/, loaders: ['style', 'css', 'sass']
}
3.在APP.vue中修改style标签
<style lang="scss">
语法