@@ -186,109 +186,124 @@ exports[`CLI should generate correct cli flags 1`] = `
186
186
Run the webpack dev server.
187
187
188
188
Options:
189
- -c, --config <value...> Provide path to a webpack configuration file
190
- e.g. ./webpack.config.js.
191
- --config-name <value...> Name of the configuration to use.
192
- -m, --merge Merge two or more configurations using
193
- 'webpack-merge'.
194
- --env <value...> Environment passed to the configuration when
195
- it is a function.
196
- --node-env <value> Sets process.env.NODE_ENV to the specified
197
- value.
198
- --progress [value] Print compilation progress during build.
199
- -j, --json [value] Prints result as JSON or store it in a file.
200
- --entry <value...> The entry point(s) of your application e.g.
201
- ./src/main.js.
202
- -o, --output-path <value> Output location of the file generated by
203
- webpack e.g. ./dist/.
204
- -t, --target <value> Sets the build target e.g. node.
205
- -d, --devtool <value> Determine source maps to use.
206
- --no-devtool Do not generate source maps.
207
- --mode <value> Defines the mode to pass to webpack.
208
- --name <value> Name of the configuration. Used when loading
209
- multiple configurations.
210
- --stats [value] It instructs webpack on how to treat the
211
- stats e.g. verbose.
212
- --no-stats Disable stats output.
213
- --watch-options-stdin Stop watching when stdin stream has ended.
214
- --no-watch-options-stdin Do not stop watching when stdin stream has
215
- ended.
216
- --host <value> The hostname/ip address the server will bind
217
- to.
218
- --port <value> The port server will listen to.
219
- --static [value...] A directory to serve static content from.
220
- --no-static Negative 'static' option.
221
- --static-directory <value> Directory for static contents.
222
- --static-public-path <value...> The bundled files will be available in the
223
- browser under this path.
224
- --static-serve-index Tells dev-server to use serveIndex
225
- middleware.
226
- --no-static-serve-index Do not tell dev-server to use serveIndex
227
- middleware.
228
- --static-watch Watch for files in static content directory.
229
- --no-static-watch Do not watch for files in static content
230
- directory.
231
- --live-reload Enables live reloading on changing files.
232
- --no-live-reload Disables live reloading on changing files.
233
- --https Use HTTPS protocol.
234
- --no-https Do not use HTTPS protocol.
235
- --https-passphrase <value> Passphrase for a pfx file.
236
- --https-key <value> Path to an SSL key.
237
- --https-pfx <value> Path to an SSL pfx file.
238
- --https-cert <value> Path to an SSL certificate.
239
- --https-cacert <value> Path to an SSL CA certificate.
240
- --https-request-cert Request for an SSL certificate.
241
- --no-https-request-cert Do not request for an SSL certificate.
242
- --http2 Use HTTP/2, must be used with HTTPS.
243
- --no-http2 Do not use HTTP/2.
244
- --bonjour Broadcasts the server via ZeroConf
245
- networking on start.
246
- --no-bonjour Do not broadcast the server via ZeroConf
247
- networking on start.
248
- --client-hot-entry Tell devServer to inject a Hot Module
249
- Replacement entry.
250
- --no-client-hot-entry Do not tell devServer to inject a Hot Module
251
- Replacement entry.
252
- --client-progress Print compilation progress in percentage in
253
- the browser.
254
- --no-client-progress Do not print compilation progress in
255
- percentage in the browser.
256
- --client-overlay Show a full-screen overlay in the browser
257
- when there are compiler errors or warnings.
258
- --no-client-overlay Do not show a full-screen overlay in the
259
- browser when there are compiler errors or
260
- warnings.
261
- --client-logging <value> Log level in the browser (none, error, warn,
262
- info, log, verbose).
263
- --open [value...] Open the default browser.
264
- --no-open Do not open the default browser.
265
- --open-app <value> Open specified browser.
266
- --open-target [value...] Open specified route in browser.
267
- --no-open-target Do not open specified route in browser.
268
- --history-api-fallback Fallback to /index.html for Single Page
269
- Applications.
270
- --no-history-api-fallback Do not fallback to /index.html for Single
271
- Page Applications.
272
- --compress Enable gzip compression.
273
- --no-compress Disable gzip compression.
274
- --public <value> The public hostname/ip address of the
275
- server.
276
- --firewall [value...] Enable firewall or set hosts that are
277
- allowed to access the dev server.
278
- --no-firewall Disable firewall.
279
- --watch-files <value...> Watch static files for file changes.
280
-
281
- Global options:
282
- --color Enable colors on console.
283
- --no-color Disable colors on console.
284
- -v, --version Output the version number of 'webpack',
285
- 'webpack-cli' and 'webpack-dev-server' and
286
- commands.
287
- -h, --help [verbose] Display help for commands and options.
288
-
289
- To see list of all supported commands and options run 'webpack --help=verbose'.
290
-
291
- Webpack documentation: https://webpack.js.org/.
292
- CLI documentation: https://webpack.js.org/api/cli/.
293
- Made with ♥ by the webpack team."
189
+ -c, --config <value...> Provide path to a webpack configuration
190
+ file e.g. ./webpack.config.js.
191
+ --config-name <value...> Name of the configuration to use.
192
+ -m, --merge Merge two or more configurations using
193
+ 'webpack-merge'.
194
+ --env <value...> Environment passed to the configuration
195
+ when it is a function.
196
+ --node-env <value> Sets process.env.NODE_ENV to the specified
197
+ value.
198
+ --progress [value] Print compilation progress during build.
199
+ -j, --json [value] Prints result as JSON or store it in a
200
+ file.
201
+ --entry <value...> The entry point(s) of your application e.g.
202
+ ./src/main.js.
203
+ -o, --output-path <value> Output location of the file generated by
204
+ webpack e.g. ./dist/.
205
+ -t, --target <value> Sets the build target e.g. node.
206
+ -d, --devtool <value> Determine source maps to use.
207
+ --no-devtool Do not generate source maps.
208
+ --mode <value> Defines the mode to pass to webpack.
209
+ --name <value> Name of the configuration. Used when
210
+ loading multiple configurations.
211
+ --stats [value] It instructs webpack on how to treat the
212
+ stats e.g. verbose.
213
+ --no-stats Disable stats output.
214
+ --watch-options-stdin Stop watching when stdin stream has ended.
215
+ --no-watch-options-stdin Do not stop watching when stdin stream has
216
+ ended.
217
+ --bonjour Broadcasts the server via ZeroConf
218
+ networking on start.
219
+ --no-bonjour Do not broadcast the server via ZeroConf
220
+ networking on start.
221
+ --client-transport <value> Allows to set custom transport to
222
+ communicate with server.
223
+ --client-host <value> Tells clients connected to devServer to use
224
+ the provided host.
225
+ --client-path <value> Tells clients connected to devServer to use
226
+ the provided path to connect.
227
+ --client-port <value> Tells clients connected to devServer to use
228
+ the provided port.
229
+ --client-logging <value> Specifies client properties.
230
+ --client-progress Print compilation progress in percentage in
231
+ the browser.
232
+ --no-client-progress Do not print compilation progress in
233
+ percentage in the browser.
234
+ --client-overlay Show a full-screen overlay in the browser
235
+ when there are compiler errors or warnings.
236
+ --no-client-overlay Do not show a full-screen overlay in the
237
+ browser when there are compiler errors or
238
+ warnings.
239
+ --client-overlay-errors Show a full-screen overlay in the browser
240
+ when there are compiler errors.
241
+ --no-client-overlay-errors Negative 'client-overlay-errors' option.
242
+ --client-overlay-warnings Show a full-screen overlay in the browser
243
+ when there are compiler warnings.
244
+ --no-client-overlay-warnings Negative 'client-overlay-warnings' option.
245
+ --client-need-client-entry Tells devServer to inject a client entry.
246
+ --no-client-need-client-entry Negative 'client-need-client-entry' option.
247
+ --client-hot-entry Tells devServer to inject a Hot Module
248
+ Replacement entry.
249
+ --no-client-hot-entry Do not tell devServer to inject a Hot
250
+ Module Replacement entry.
251
+ --web-socket-server <value> Allows to set web socket server and
252
+ options.
253
+ --web-socket-server-type <value> Allows to set web socket server and
254
+ options.
255
+ --compress Enable gzip compression for everything
256
+ served.
257
+ --no-compress Disable gzip compression.
258
+ --firewall [value...] Defines routes which are enabled by
259
+ default, on by default and allows
260
+ localhost.
261
+ --no-firewall Disable firewall.
262
+ --firewall-reset Clear all items provided in configuration.
263
+ Defines routes which are enabled by
264
+ default, on by default and allows
265
+ localhost.
266
+ --history-api-fallback When using the HTML5 History API, the
267
+ index.html page will likely have to be
268
+ served in place of any 404 responses.
269
+ --no-history-api-fallback Negative 'history-api-fallback' option.
270
+ --host <value> Specify a host to use. If you want your
271
+ server to be accessible externally.
272
+ --hot [value] Enable webpack's Hot Module Replacement
273
+ feature.
274
+ --no-hot Disable webpack's Hot Module Replacement
275
+ feature.
276
+ --http2 Serve over HTTP/2 using spdy.
277
+ --no-http2 Do not use HTTP/2.
278
+ --https By default, dev-server will be served over
279
+ HTTP. It can optionally be served over
280
+ HTTP/2 with HTTPS.
281
+ --no-https Do not use HTTPS protocol.
282
+ --https-passphrase <value> Passphrase for a pfx file.
283
+ --https-request-cert Request for an SSL certificate.
284
+ --no-https-request-cert Do not request for an SSL certificate.
285
+ --https-cacert <value> Path to an SSL CA certificate.
286
+ --https-key <value> Path to an SSL key.
287
+ --https-pfx <value> Path to an SSL pfx file.
288
+ --https-cert <value> Path to an SSL certificate.
289
+ --live-reload By default, the dev-server will
290
+ reload/refresh the page when file changes
291
+ are detected.
292
+ --no-live-reload Disables live reloading on changing files.
293
+ --open [value...] Tells dev-server to open the browser after
294
+ server had been started. Set it to true to
295
+ open your default browser.
296
+ --no-open Do not open the default browser.
297
+ --open-target [value...] Open specified route in browser.
298
+ --no-open-target Do not open specified route in browser.
299
+ --open-app-name <value...> Open specified browser.
300
+ --open-app <value> Open specified browser.
301
+ --open-reset Clear all items provided in configuration.
302
+ Tells dev-server to open the browser after
303
+ server had been started. Set it to true to
304
+ open your default browser.
305
+ --open-target-reset Clear all items provided in configuration.
306
+ Open specified route in browser.
307
+ --open-app-name-reset Clear all items provided in configuration.
308
+ Open sp"
294
309
`;
0 commit comments