1.运行
npm install node-sass --save-dev npm install sass-loader --save-dev
2.打开build文件夹下面的webpack.base.config.js
module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), { test: /\.scss$/, loaders: ["style", "css", "sass"] }, ] },
1.运行
npm install node-sass --save-dev npm install sass-loader --save-dev
2.打开build文件夹下面的webpack.base.config.js
module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), { test: /\.scss$/, loaders: ["style", "css", "sass"] }, ] },
转载于:https://www.cnblogs.com/linsx/p/8523129.html