Skip to content

Commit

Permalink
chore(docs): Add how to install all deps when NODE_ENV=production
Browse files Browse the repository at this point in the history
PR-URL: #232
Credit: @mugli
Close: #232
Reviewed-by: @claudiahdz
  • Loading branch information
mugli authored and claudiahdz committed Nov 14, 2019
1 parent 8e09d5a commit 4a2f551
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/content/cli-commands/npm-install.md
Expand Up @@ -62,7 +62,9 @@ after packing it up into a tarball (b).

With the `--production` flag (or when the `NODE_ENV` environment variable
is set to `production`), npm will not install modules listed in
`devDependencies`.
`devDependencies`. To install all modules listed in both `dependencies`
and `devDependencies` when `NODE_ENV` environment variable is set to `production`,
you can use `--production=false`.

> NOTE: The `--production` flag has no particular meaning when adding a
dependency to a project.
Expand Down

0 comments on commit 4a2f551

Please sign in to comment.