From 07fee65769dbcb7ed0346a952610fe167477d71b Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Wed, 27 Jun 2018 18:47:24 -0400 Subject: [PATCH] Improve `npm run start` behavior when starting with no CSS compiled Signed-off-by: Mcat12 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a60029c..5303900 100644 --- a/package.json +++ b/package.json @@ -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"