Skip to content

Commit

Permalink
docs(webpack-cli): add no-mode flag
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Feb 28, 2020
1 parent a916dd1 commit 70af83b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/webpack-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Available Commands
Options
--entry string The entry point of your application.
-c, --config string Provide path to a webpack configuration file
-c, --config string Provide path to a webpack configuration file
-m, --merge string Merge a configuration file using webpack-merge
--progress Print compilation progress during build
--silent Disable any output that webpack makes
Expand All @@ -55,6 +55,7 @@ Options
-d, --dev Run development build
-p, --prod Run production build
--mode string Defines the mode to pass to webpack
--no-mode Sets mode="none" which disables any default behavior
--version Get current version
--node-args string[] NodeJS flags
```
Expand Down
1 change: 0 additions & 1 deletion packages/webpack-cli/lib/utils/zero-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ function getEnvFromOptionsAndMode(mode, optionsObject) {
if (NODE_ENV && (NODE_ENV === 'production' || NODE_ENV === 'development')) {
return NODE_ENV;
} else if (prod) {
console.log(prod)
return 'production';
} else if (dev) {
return 'development';
Expand Down

0 comments on commit 70af83b

Please sign in to comment.