follow the online tutorials:
1. Install the module
npm install --save-dev sass-loader
npm install --save-dev node-sass
2. Modify webpack.config.js
{
test: /\.scss$/,
loaders: ["style", "css", "sass"]
},
3.static create a new sass file, style.sass
$primaryColor:-sharpf5d030;
.navbar-default .special_link a {
background: $primaryColor;
color: white;
}
4.main.js introduces sass
import "./../static/css/style.sass"
5.npm run dev error