File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 9
9
--config-name <value...> Name of the configuration to use.
10
10
-m, --merge Merge two or more configurations using 'webpack-merge'.
11
11
--env <value...> Environment passed to the configuration when it is a function.
12
- --node-env <value> Sets process.env.NODE_ENV to the specified value
12
+ --node-env <value> Sets process.env.NODE_ENV to the specified value.
13
13
-h, --hot Enables Hot Module Replacement
14
14
--no-hot Disables Hot Module Replacement.
15
15
--analyze It invokes webpack-bundle-analyzer plugin to get bundle information.
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ npx webpack-cli --help verbose
85
85
--config-name <value...> Name of the configuration to use.
86
86
-m, --merge Merge two or more configurations using 'webpack-merge'.
87
87
--env <value...> Environment passed to the configuration when it is a function.
88
+ --node-env <value> Sets process.env.NODE_ENV to the specified value.
88
89
--progress [value] Print compilation progress during build.
89
90
-j, --json [value] Prints result as JSON or store it in a file.
90
91
-d, --devtool <value> Determine source maps to use.
Original file line number Diff line number Diff line change @@ -241,6 +241,7 @@ class WebpackCLI {
241
241
'json' ,
242
242
'name' ,
243
243
'output-path' ,
244
+ 'node-env' ,
244
245
] ;
245
246
246
247
const builtInFlags = [
@@ -299,7 +300,7 @@ class WebpackCLI {
299
300
name : 'node-env' ,
300
301
type : String ,
301
302
multiple : false ,
302
- description : 'Sets process.env.NODE_ENV to the specified value' ,
303
+ description : 'Sets process.env.NODE_ENV to the specified value. ' ,
303
304
} ,
304
305
305
306
// Adding more plugins
You can’t perform that action at this time.
0 commit comments