安装sass-loader node-sass
cnpm install sass-loader node-sass -D
-D是--save-dev的缩写
安装之后有的会报错:
this.getReslove is not a function....
这时因为sass-loader的版本太高的原因,在package.json 长修改sass-loader的版本低于8.0,删除node_modules文件加,重新安装就ok了