标签:amp tps npm class lan 运行 blank node-sass targe
npm install --save-dev npm-run-all
package.json添加两行:
1 "scripts": { 2 "build-css": "node-sass-chokidar src/ -o src/", 3 "watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive", 4 "start": "react-scripts start", 5 "build": "react-scripts build", 6 "test": "react-scripts test --env=jsdom",
运行 npm run watch-css 会将src目录下的scss转换成css
标签:amp tps npm class lan 运行 blank node-sass targe
原文地址:http://www.cnblogs.com/alan2kat/p/7574261.html