1.cnpm install-- save-dev sass-loader
cnpm install-- save-dev node-sass, these two dependent packages are also installed
2.webpack.base.conf.js. Configuration
{
test: / .sass $/,
loaders: ["style"," css", "sass"]
}
3. Lang= "scss" and < style lang= "scss" > are also added to the tag. Finally, an error is reported when running npm run dev
.