Improve npm run start behavior when starting with no CSS compiled

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-06-27 18:47:24 -04:00
parent 5bf4774fa9
commit 07fee65769
+2 -2
View File
@@ -38,14 +38,14 @@
"sha.js": "^2.4.11"
},
"scripts": {
"start": "npm-run-all -p watch-css start-js",
"start": "npm run build-css && npm-run-all -p watch-css start-js",
"start-js": "react-scripts start",
"start-fake": "node make-fake-data.js && REACT_APP_FAKE_API=1 npm run start",
"build": "npm-run-all build-css build-js",
"build-fake": "node make-fake-data.js && REACT_APP_FAKE_API=1 npm run build",
"build-js": "react-scripts build",
"build-css": "node-sass-chokidar --include-path ./node_modules ./src/scss -o ./src/scss",
"watch-css": "npm run build-css && node-sass-chokidar --include-path ./node_modules ./src/scss -o ./src/scss --watch --recursive",
"watch-css": "node-sass-chokidar --include-path ./node_modules ./src/scss -o ./src/scss --watch --recursive",
"update-translations": "node update-translations.js",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"