@@ -75,43 +75,42 @@ npx webpack-cli --help verbose
75
75
watch|w [entries...] [options] Run webpack and watch for files changes.
76
76
```
77
77
78
- ### webpack 4
78
+ ### Available Options
79
79
80
80
```
81
- Options:
82
- --analyze It invokes webpack-bundle-analyzer plugin to get bundle information
83
- -c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
84
- --config-name <value...> Name of the configuration to use.
85
- -m, --merge Merge two or more configurations using 'webpack-merge'.
86
- --env <value...> Environment passed to the configuration when it is a function.
87
- --node-env <value> Sets process.env.NODE_ENV to the specified value.
88
- --progress [value] Print compilation progress during build.
89
- -j, --json [value] Prints result as JSON or store it in a file.
90
- -d, --devtool <value> Determine source maps to use.
91
- --no-devtool Do not generate source maps.
92
- --entry <value...> The entry point(s) of your application e.g. ./src/main.js.
93
- -h, --hot [value] Enables Hot Module Replacement
94
- --no-hot Disables Hot Module Replacement
95
- --mode <value> Defines the mode to pass to webpack.
96
- --name <value> Name of the configuration. Used when loading multiple configurations.
97
- -o, --output-path <value> Output location of the file generated by webpack e.g. ./dist/.
98
- --stats [value] It instructs webpack on how to treat the stats e.g. verbose.
99
- --no-stats Disable stats output.
100
- -t, --target <value...> Sets the build target e.g. node.
101
- -w, --watch Watch for files changes.
102
- --no-watch Do not watch for file changes.
103
- --watch-options-stdin Stop watching when stdin stream has ended.
104
- --no-watch-options-stdin Do not stop watching when stdin stream has ended.
81
+ Options:
82
+ -c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
83
+ --config-name <value...> Name of the configuration to use.
84
+ -m, --merge Merge two or more configurations using 'webpack-merge'.
85
+ --disable-interpret Disable interpret for loading the config file.
86
+ --env <value...> Environment passed to the configuration when it is a function.
87
+ --define-process-env-node-env <value> Sets process.env.NODE_ENV to the specified value.
88
+ --analyze It invokes webpack-bundle-analyzer plugin to get bundle information.
89
+ --progress [value] Print compilation progress during build.
90
+ -j, --json [value] Prints result as JSON or store it in a file.
91
+ --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack
92
+ -d, --devtool <value> A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
93
+ --no-devtool Negative 'devtool' option.
94
+ --entry <value...> A module that is loaded upon startup. Only the last one is exported.
95
+ --mode <value> Enable production optimizations or development hints.
96
+ --name <value> Name of the configuration. Used when loading multiple configurations.
97
+ -o, --output-path <value> The output directory as **absolute path** (required).
98
+ --stats [value] Stats options object or preset name.
99
+ --no-stats Negative 'stats' option.
100
+ -t, --target <value...> Environment to build for. Environment to build for. An array of environments to build for all of them when possible.
101
+ --no-target Negative 'target' option.
102
+ -w, --watch Enter watch mode, which rebuilds on file change.
103
+ --no-watch Negative 'watch' option.
104
+ --watch-options-stdin Stop watching when stdin stream has ended.
105
+ --no-watch-options-stdin Negative 'watch-options-stdin' option.
105
106
106
107
Global options:
107
- --color Enable colors on console.
108
- --no-color Disable colors on console.
109
- -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
110
- -h, --help [verbose] Display help for commands and options.
108
+ --color Enable colors on console.
109
+ --no-color Disable colors on console.
110
+ -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
111
+ -h, --help [verbose] Display help for commands and options.
111
112
```
112
113
113
- ### webpack 5
114
-
115
114
Checkout [ ` OPTIONS.md ` ] ( https://github.com/webpack/webpack-cli/blob/master/OPTIONS.md ) to see list of all available options.
116
115
117
116
## Exit codes and their meanings
0 commit comments