diff options
author | Andrew <talktome@aboutandrew.co.uk> | 2015-06-01 14:13:51 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2015-06-04 03:41:33 +0300 |
commit | 5a744e4b143ef7b2f50c80a1d96fdae4204d452b (patch) | |
tree | cccad5e7d3bb18695fa97cbc34650804346f9de5 /doc | |
parent | f8bd453b1a1c46ba7666cb166595e8a011eae443 (diff) |
Improve npm prune documentation
Detail effect of setting NODE_ENV=production to command and how to negate
PR-URL: https://github.com/npm/npm/pull/8421
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cli/npm-prune.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/cli/npm-prune.md b/doc/cli/npm-prune.md index 88c54754b..846a04240 100644 --- a/doc/cli/npm-prune.md +++ b/doc/cli/npm-prune.md @@ -15,8 +15,10 @@ removed. Extraneous packages are packages that are not listed on the parent package's dependencies list. -If the `--production` flag is specified, this command will remove the -packages specified in your `devDependencies`. +If the `--production` flag is specified or the `NODE_ENV` environment +variable is set to `production`, this command will remove the packages +specified in your `devDependencies`. Setting `--production=false` will +negate `NODE_ENV` being set to `production`. ## SEE ALSO |