Skip to content

Commit f666ec4

Browse files
committed
test: update snap
1 parent bc6f0a4 commit f666ec4

File tree

1 file changed

+92
-91
lines changed

1 file changed

+92
-91
lines changed

test/cli/__snapshots__/cli.test.js.snap.webpack4

Lines changed: 92 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -186,99 +186,100 @@ exports[`CLI should generate correct cli flags 1`] = `
186186
Run the webpack dev server.
187187

188188
Options:
189-
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
190-
--config-name <value...> Name of the configuration to use.
191-
-m, --merge Merge two or more configurations using 'webpack-merge'.
192-
--env <value...> Environment passed to the configuration when it is a function.
193-
--node-env <value> Sets process.env.NODE_ENV to the specified value.
194-
--progress [value] Print compilation progress during build.
195-
-j, --json [value] Prints result as JSON or store it in a file.
196-
--entry <value...> The entry point(s) of your application e.g. ./src/main.js.
197-
-o, --output-path <value> Output location of the file generated by webpack e.g. ./dist/.
198-
-t, --target <value> Sets the build target e.g. node.
199-
-d, --devtool <value> Determine source maps to use.
200-
--no-devtool Do not generate source maps.
201-
--mode <value> Defines the mode to pass to webpack.
202-
--name <value> Name of the configuration. Used when loading multiple configurations.
203-
--stats [value] It instructs webpack on how to treat the stats e.g. verbose.
204-
--no-stats Disable stats output.
205-
--watch-options-stdin Stop watching when stdin stream has ended.
206-
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
207-
--bonjour Broadcasts the server via ZeroConf networking on start.
208-
--no-bonjour Do not broadcast the server via ZeroConf networking on start.
209-
--client-transport <value> Allows to set custom transport to communicate with server.
210-
--client-host <value> Tells clients connected to devServer to use the provided host.
211-
--client-path <value> Tells clients connected to devServer to use the provided path to connect.
212-
--client-port <value> Tells clients connected to devServer to use the provided port.
213-
--client-logging <value> Specifies client properties.
214-
--client-progress Print compilation progress in percentage in the browser.
215-
--no-client-progress Do not print compilation progress in percentage in the browser.
216-
--client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings.
217-
--no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings.
218-
--client-overlay-errors Show a full-screen overlay in the browser when there are compiler errors.
219-
--no-client-overlay-errors Negative 'client-overlay-errors' option.
220-
--client-overlay-warnings Show a full-screen overlay in the browser when there are compiler warnings.
221-
--no-client-overlay-warnings Negative 'client-overlay-warnings' option.
222-
--client-need-client-entry Tells devServer to inject a client entry.
223-
--no-client-need-client-entry Negative 'client-need-client-entry' option.
224-
--client-hot-entry Tells devServer to inject a Hot Module Replacement entry.
225-
--no-client-hot-entry Do not tell devServer to inject a Hot Module Replacement entry.
226-
--web-socket-server <value> Allows to set web socket server and options.
227-
--web-socket-server-type <value> Allows to set web socket server and options.
228-
--compress Enable gzip compression for everything served.
229-
--no-compress Disable gzip compression.
230-
--firewall [value...] Defines routes which are enabled by default, on by default and allows localhost.
231-
--no-firewall Disable firewall.
232-
--firewall-reset Clear all items provided in firewall configuration.
233-
--history-api-fallback When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses.
234-
--no-history-api-fallback Negative 'history-api-fallback' option.
235-
--host <value> Specify a host to use. If you want your server to be accessible externally.
236-
--hot [value] Enable webpack's Hot Module Replacement feature.
237-
--no-hot Disable webpack's Hot Module Replacement feature.
238-
--http2 Serve over HTTP/2 using spdy.
239-
--no-http2 Do not use HTTP/2.
240-
--https By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS.
241-
--no-https Do not use HTTPS protocol.
242-
--https-passphrase <value> Passphrase for a pfx file.
243-
--https-request-cert Request for an SSL certificate.
244-
--no-https-request-cert Do not request for an SSL certificate.
245-
--https-cacert <value> Path to an SSL CA certificate.
246-
--https-key <value> Path to an SSL key.
247-
--https-pfx <value> Path to an SSL pfx file.
248-
--https-cert <value> Path to an SSL certificate.
249-
--live-reload By default, the dev-server will reload/refresh the page when file changes are detected.
250-
--no-live-reload Disables live reloading on changing files.
251-
--open [value...] Tells dev-server to open the browser after server had been started. Set it to true to open your default browser.
252-
--no-open Do not open the default browser.
253-
--open-target [value...] Open specified route in browser.
254-
--no-open-target Do not open specified route in browser.
255-
--open-app-name <value...> Open specified browser.
256-
--open-app <value> Open specified browser.
257-
--open-reset Clear all items provided in open configuration.
258-
--open-target-reset Clear all items provided in open.target configuration.
259-
--open-app-name-reset Clear all items provided in open.app.name configuration.
260-
--port <value> Specify a port number to listen for requests on.
261-
--public <value> The public hostname/ip address of the server that client script will try to connect to.
262-
--static [value...] It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options.
263-
--no-static Negative 'static' option.
264-
--static-directory <value> Directory for static contents.
265-
--static-public-path <value...> The bundled files will be available in the browser under this path.
266-
--static-serve-index Tells dev-server to use serveIndex middleware when enabled.
267-
--no-static-serve-index Do not tell dev-server to use serveIndex middleware.
268-
--static-watch Watch for files in static content directory.
269-
--no-static-watch Do not watch for files in static content directory.
270-
--static-reset Clear all items provided in static configuration.
271-
--static-public-path-reset Clear all items provided in static.publicPath configuration.
272-
--watch-files <value...> List of files to watch for file changes and serve.
273-
--watch-files-paths <value...> List of files to watch for file changes and serve.
274-
--watch-files-reset Clear all items provided in watchFiles configuration.
275-
--watch-files-paths-reset Clear all items provided in watchFiles.paths configuration.
189+
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
190+
--config-name <value...> Name of the configuration to use.
191+
-m, --merge Merge two or more configurations using 'webpack-merge'.
192+
--env <value...> Environment passed to the configuration when it is a function.
193+
--node-env <value> Sets process.env.NODE_ENV to the specified value.
194+
--progress [value] Print compilation progress during build.
195+
-j, --json [value] Prints result as JSON or store it in a file.
196+
--entry <value...> The entry point(s) of your application e.g. ./src/main.js.
197+
-o, --output-path <value> Output location of the file generated by webpack e.g. ./dist/.
198+
-t, --target <value> Sets the build target e.g. node.
199+
-d, --devtool <value> Determine source maps to use.
200+
--no-devtool Do not generate source maps.
201+
--mode <value> Defines the mode to pass to webpack.
202+
--name <value> Name of the configuration. Used when loading multiple configurations.
203+
--stats [value] It instructs webpack on how to treat the stats e.g. verbose.
204+
--no-stats Disable stats output.
205+
--watch-options-stdin Stop watching when stdin stream has ended.
206+
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
207+
--bonjour Broadcasts the server via ZeroConf networking on start.
208+
--no-bonjour Do not broadcast the server via ZeroConf networking on start.
209+
--client-transport <value> Allows to set custom transport to communicate with server.
210+
--client-logging <value> Specifies client properties.
211+
--client-progress Print compilation progress in percentage in the browser.
212+
--no-client-progress Do not print compilation progress in percentage in the browser.
213+
--client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings.
214+
--no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings.
215+
--client-overlay-errors Show a full-screen overlay in the browser when there are compiler errors.
216+
--no-client-overlay-errors Negative 'client-overlay-errors' option.
217+
--client-overlay-warnings Show a full-screen overlay in the browser when there are compiler warnings.
218+
--no-client-overlay-warnings Negative 'client-overlay-warnings' option.
219+
--client-need-client-entry Tells devServer to inject a client entry.
220+
--no-client-need-client-entry Negative 'client-need-client-entry' option.
221+
--client-hot-entry Tells devServer to inject a Hot Module Replacement entry.
222+
--no-client-hot-entry Do not tell devServer to inject a Hot Module Replacement entry.
223+
--client-web-socket-url <value> When using dev server and you're proxying dev-server, the client script does not always know where to connect to.
224+
--client-web-socket-url-host <value> Tells clients connected to devServer to use the provided host.
225+
--client-web-socket-url-port <value> Tells clients connected to devServer to use the provided port.
226+
--client-web-socket-url-path <value> Tells clients connected to devServer to use the provided path to connect.
227+
--web-socket-server <value> Allows to set web socket server and options.
228+
--web-socket-server-type <value> Allows to set web socket server and options.
229+
--compress Enable gzip compression for everything served.
230+
--no-compress Disable gzip compression.
231+
--firewall [value...] Defines routes which are enabled by default, on by default and allows localhost.
232+
--no-firewall Disable firewall.
233+
--firewall-reset Clear all items provided in firewall configuration.
234+
--history-api-fallback When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses.
235+
--no-history-api-fallback Negative 'history-api-fallback' option.
236+
--host <value> Specify a host to use. If you want your server to be accessible externally.
237+
--hot [value] Enable webpack's Hot Module Replacement feature.
238+
--no-hot Disable webpack's Hot Module Replacement feature.
239+
--http2 Serve over HTTP/2 using spdy.
240+
--no-http2 Do not use HTTP/2.
241+
--https By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS.
242+
--no-https Do not use HTTPS protocol.
243+
--https-passphrase <value> Passphrase for a pfx file.
244+
--https-request-cert Request for an SSL certificate.
245+
--no-https-request-cert Do not request for an SSL certificate.
246+
--https-cacert <value> Path to an SSL CA certificate.
247+
--https-key <value> Path to an SSL key.
248+
--https-pfx <value> Path to an SSL pfx file.
249+
--https-cert <value> Path to an SSL certificate.
250+
--live-reload By default, the dev-server will reload/refresh the page when file changes are detected.
251+
--no-live-reload Disables live reloading on changing files.
252+
--open [value...] Tells dev-server to open the browser after server had been started. Set it to true to open your default browser.
253+
--no-open Do not open the default browser.
254+
--open-target [value...] Open specified route in browser.
255+
--no-open-target Do not open specified route in browser.
256+
--open-app-name <value...> Open specified browser.
257+
--open-app <value> Open specified browser.
258+
--open-reset Clear all items provided in open configuration.
259+
--open-target-reset Clear all items provided in open.target configuration.
260+
--open-app-name-reset Clear all items provided in open.app.name configuration.
261+
--port <value> Specify a port number to listen for requests on.
262+
--public <value> The public hostname/ip address of the server that client script will try to connect to.
263+
--static [value...] It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options.
264+
--no-static Negative 'static' option.
265+
--static-directory <value> Directory for static contents.
266+
--static-public-path <value...> The bundled files will be available in the browser under this path.
267+
--static-serve-index Tells dev-server to use serveIndex middleware when enabled.
268+
--no-static-serve-index Do not tell dev-server to use serveIndex middleware.
269+
--static-watch Watch for files in static content directory.
270+
--no-static-watch Do not watch for files in static content directory.
271+
--static-reset Clear all items provided in static configuration.
272+
--static-public-path-reset Clear all items provided in static.publicPath configuration.
273+
--watch-files <value...> List of files to watch for file changes and serve.
274+
--watch-files-paths <value...> List of files to watch for file changes and serve.
275+
--watch-files-reset Clear all items provided in watchFiles configuration.
276+
--watch-files-paths-reset Clear all items provided in watchFiles.paths configuration.
276277

277278
Global options:
278-
--color Enable colors on console.
279-
--no-color Disable colors on console.
280-
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
281-
-h, --help [verbose] Display help for commands and options.
279+
--color Enable colors on console.
280+
--no-color Disable colors on console.
281+
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
282+
-h, --help [verbose] Display help for commands and options.
282283

283284
To see list of all supported commands and options run 'webpack --help=verbose'.
284285

0 commit comments

Comments
 (0)