Skip to content

Commit fc885a0

Browse files
shimegaearon
authored andcommitted
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`
1 parent 5a336ad commit fc885a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-scripts/template/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,8 @@ Then we can change `start` and `build` scripts to include the CSS preprocessor c
599599
- "build": "react-scripts build",
600600
+ "start-js": "react-scripts start",
601601
+ "start": "npm-run-all -p watch-css start-js",
602-
+ "build": "npm run build-css && react-scripts build",
602+
+ "build-js": "react-scripts build",
603+
+ "build": "npm-run-all build-css build-js",
603604
"test": "react-scripts test --env=jsdom",
604605
"eject": "react-scripts eject"
605606
}

0 commit comments

Comments
 (0)