- npm install --save-dev sass-loader
- npm install --save-dev node-sass
然后在build文件里面找到webpack.base.conf.js里面找到rules里面添加配置style里面加上属性
{
test: /\.sass$/,
loaders: ['style', 'css', 'sass']
}
<style lang="scss">
- npm install --save-dev sass-loader
- npm install --save-dev node-sass
然后在build文件里面找到webpack.base.conf.js里面找到rules里面添加配置style里面加上属性
{
test: /\.sass$/,
loaders: ['style', 'css', 'sass']
}
<style lang="scss">
本文标题:vue脚手架配置sass
本文链接:https://www.haomeiwen.com/subject/jyoviftx.html
网友评论