Skip to content

Commit 374f1ef

Browse files
originellgaearon
authored andcommitted
Update node-sass-chokidar docs (facebook#4205)
* Removes Chokidar Recursive Flag According to the changelog it is not necessary anymore as it doesn't do anything. * Removes initial build on SCSS watch Chokidar now does this on it's own. * Removes sass watch recursive, default include-path as proposed by @michaelwayman * Removes another left-over build-css
1 parent 5025484 commit 374f1ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ Then in `package.json`, add the following lines to `scripts`:
621621
```diff
622622
"scripts": {
623623
+ "build-css": "node-sass-chokidar src/ -o src/",
624-
+ "watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive",
624+
+ "watch-css": "node-sass-chokidar src/ -o src/ --watch",
625625
"start": "react-scripts start",
626626
"build": "react-scripts build",
627627
"test": "react-scripts test --env=jsdom",
@@ -636,8 +636,8 @@ To share variables between Sass files, you can use Sass imports. For example, `s
636636
To enable importing files without using relative paths, you can add the `--include-path` option to the command in `package.json`.
637637

638638
```
639-
"build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/",
640-
"watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive",
639+
"build-css": "node-sass-chokidar --include-path ./node_modules src/ -o src/",
640+
"watch-css": "node-sass-chokidar --include-path ./node_modules src/ -o src/ --watch",
641641
```
642642

643643
This will allow you to do imports like

0 commit comments

Comments
 (0)