diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 21cf719e9619c77989fd2d7abc5a93956abb02c2..2c8ec3eda5e64d69541ec6ca4b291155746ae96b 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -621,7 +621,7 @@ Then in `package.json`, add the following lines to `scripts`: ```diff "scripts": { + "build-css": "node-sass-chokidar src/ -o src/", -+ "watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive", ++ "watch-css": "node-sass-chokidar src/ -o src/ --watch", "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", @@ -636,8 +636,8 @@ To share variables between Sass files, you can use Sass imports. For example, `s To enable importing files without using relative paths, you can add the `--include-path` option to the command in `package.json`. ``` -"build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/", -"watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive", +"build-css": "node-sass-chokidar --include-path ./node_modules src/ -o src/", +"watch-css": "node-sass-chokidar --include-path ./node_modules src/ -o src/ --watch", ``` This will allow you to do imports like