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 13, 2019
1 parent b0437f7 commit 9b75dea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/content/cli-commands/npm-install.md
Original file line number Diff line number Diff line change
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 9b75dea

Please sign in to comment.