npm install node-sass@4.14.1 --save-dev //安装node-sass
npm install sass-loader@7.3.1 --save-dev //安装依赖包sass-loader
{
test: /\.sass$/,
loaders: [‘style‘, ‘css‘, ‘sass‘]
}
<style lang="scss" scoped>
</style>
原文:https://www.cnblogs.com/1748sb/p/14446618.html