Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.

Commit 76ee483

Browse files
committed
Use node-sass-chokidar to fix infinite CSS recompiling
facebook/create-react-app#1939
1 parent 7bc3e96 commit 76ee483

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
"devDependencies": {
2727
"faker": "^4.1.0",
2828
"json-server": "^0.10.0",
29-
"node-sass": "^4.5.2",
29+
"node-sass-chokidar": "0.0.3",
3030
"npm-run-all": "^4.0.2",
3131
"react-scripts": "0.9.5"
3232
},
3333
"scripts": {
34-
"build-css": "node-sass src/ -o src/ --importer=node_modules/node-sass-package-importer/dist/cli.js",
35-
"watch-css": "npm run build-css && node-sass src/ -o src/ --watch --recursive --importer=node_modules/node-sass-package-importer/dist/cli.js",
34+
"build-css": "node-sass-chokidar src/ -o src/ --importer=node_modules/node-sass-package-importer/dist/cli.js",
35+
"watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive --importer=node_modules/node-sass-package-importer/dist/cli.js",
3636
"messages": "react-intl-cra 'src/**/*.js' 'i18n/messages.json'",
3737
"json2pot": "react-intl-po json2pot 'i18n/messages.json' -o 'i18n/messages.pot'",
3838
"po2json": "react-intl-po po2json 'i18n/translations/*.po' -m 'i18n/messages.json' -o src/translations.json",

0 commit comments

Comments
 (0)