引入less或者sass
2019-01-23 本文已影响0人
royluck
"devDependencies": {
"less": "^3.9.0",
"less-loader": "^4.1.0",
}
"devDependencies": {
"node-sass": "^4.9.0",
"sass-loader": "^7.0.1",
}
项目中遇到过:拉取的项目。执行yarn install node-sass 安装失败,报一堆错误,解决方法,使用淘宝镜像,重新执行安装
cnpm install node-sass --save-dev
cnpm install sass-loader --save-dev