From 84c653b654d0a0c8a749a8a330757aba7667b5ad Mon Sep 17 00:00:00 2001 From: Bohdan Lyzanets <bogdan.uz@gmail.com> Date: Sun, 19 Nov 2017 22:00:20 +0200 Subject: [PATCH] install dev dependencies as devDependencies --- packages/react-scripts/template/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index d8ee5fb5c..e298de48e 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -537,13 +537,13 @@ Following this rule often makes CSS preprocessors less useful, as features like First, let’s install the command-line interface for Sass: ```sh -npm install --save node-sass-chokidar +npm install --save-dev node-sass-chokidar ``` Alternatively you may use `yarn`: ```sh -yarn add node-sass-chokidar +yarn add node-sass-chokidar --dev ``` Then in `package.json`, add the following lines to `scripts`: @@ -582,13 +582,13 @@ At this point you might want to remove all CSS files from the source control, an As a final step, you may find it convenient to run `watch-css` automatically with `npm start`, and run `build-css` as a part of `npm run build`. You can use the `&&` operator to execute two scripts sequentially. However, there is no cross-platform way to run two scripts in parallel, so we will install a package for this: ```sh -npm install --save npm-run-all +npm install --save-dev npm-run-all ``` Alternatively you may use `yarn`: ```sh -yarn add npm-run-all +yarn add npm-run-all --dev ``` Then we can change `start` and `build` scripts to include the CSS preprocessor commands: -- GitLab