From 70a000bfe8cc0200ec4ce45a0be483da72232c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hrvoje=20=C5=A0imi=C4=87?= Date: Sat, 28 Oct 2017 23:11:19 +0200 Subject: [PATCH] start using npm-run-all to build scss and js (#2957) instead of using `&&` to run multiple commands in `package.json`, guide users to use `npm-run-all` --- template/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template/README.md b/template/README.md index cd197b3b50..e5acc6b773 100644 --- a/template/README.md +++ b/template/README.md @@ -599,7 +599,8 @@ Then we can change `start` and `build` scripts to include the CSS preprocessor c - "build": "react-scripts build", + "start-js": "react-scripts start", + "start": "npm-run-all -p watch-css start-js", -+ "build": "npm run build-css && react-scripts build", ++ "build-js": "react-scripts build", ++ "build": "npm-run-all build-css build-js", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" }