vue-cli 使用scss 安装

第一步

npm install node-sass --save-dev(一直安装失败,github位置搬了所以换成下面的命令)

  1。npm install --save node-sass --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist --sass-binary-site=http://npm.taobao.org/mirrors/node-sass

  2。npm install sass-loader --save-dev

第二步

在webpack.base.conf.js 文件下的配置 rules

第三步:

第四部 看效果:

    happy!!!!!!!!!!!

 
 

猜你喜欢

转载自www.cnblogs.com/xianyk/p/9346765.html