Skip to content

Commit 4f42ce2

Browse files
committed
test: update snapshot
1 parent fdf550b commit 4f42ce2

File tree

1 file changed

+59
-87
lines changed

1 file changed

+59
-87
lines changed

test/cli/__snapshots__/cli.test.js.snap.webpack5

+59-87
Original file line numberDiff line numberDiff line change
@@ -186,95 +186,58 @@ 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
190-
file e.g. ./webpack.config.js.
189+
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
191190
--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.
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.
198194
--progress [value] Print compilation progress during build.
199-
-j, --json [value] Prints result as JSON or store it in a
200-
file.
195+
-j, --json [value] Prints result as JSON or store it in a file.
201196
-d, --devtool <value> Determine source maps to use.
202197
--no-devtool Do not generate source maps.
203-
--entry <value...> The entry point(s) of your application e.g.
204-
./src/main.js.
198+
--entry <value...> The entry point(s) of your application e.g. ./src/main.js.
205199
--mode <value> Defines the mode to pass to webpack.
206-
--name <value> Name of the configuration. Used when
207-
loading multiple configurations.
208-
-o, --output-path <value> Output location of the file generated by
209-
webpack e.g. ./dist/.
210-
--stats [value] It instructs webpack on how to treat the
211-
stats e.g. verbose.
200+
--name <value> Name of the configuration. Used when loading multiple configurations.
201+
-o, --output-path <value> Output location of the file generated by webpack e.g. ./dist/.
202+
--stats [value] It instructs webpack on how to treat the stats e.g. verbose.
212203
--no-stats Disable stats output.
213204
-t, --target <value...> Sets the build target e.g. node.
214205
--no-target Negative 'target' option.
215206
--watch-options-stdin Stop watching when stdin stream has ended.
216-
--no-watch-options-stdin Do not stop watching when stdin stream has
217-
ended.
218-
--bonjour Broadcasts the server via ZeroConf
219-
networking on start.
220-
--no-bonjour Do not broadcast the server via ZeroConf
221-
networking on start.
222-
--client-transport <value> Allows to set custom transport to
223-
communicate with server.
224-
--client-host <value> Tells clients connected to devServer to use
225-
the provided host.
226-
--client-path <value> Tells clients connected to devServer to use
227-
the provided path to connect.
228-
--client-port <value> Tells clients connected to devServer to use
229-
the provided port.
207+
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
208+
--bonjour Broadcasts the server via ZeroConf networking on start.
209+
--no-bonjour Do not broadcast the server via ZeroConf networking on start.
210+
--client-transport <value> Allows to set custom transport to communicate with server.
211+
--client-host <value> Tells clients connected to devServer to use the provided host.
212+
--client-path <value> Tells clients connected to devServer to use the provided path to connect.
213+
--client-port <value> Tells clients connected to devServer to use the provided port.
230214
--client-logging <value> Specifies client properties.
231-
--client-progress Print compilation progress in percentage in
232-
the browser.
233-
--no-client-progress Do not print compilation progress in
234-
percentage in the browser.
235-
--client-overlay Show a full-screen overlay in the browser
236-
when there are compiler errors or warnings.
237-
--no-client-overlay Do not show a full-screen overlay in the
238-
browser when there are compiler errors or
239-
warnings.
240-
--client-overlay-errors Show a full-screen overlay in the browser
241-
when there are compiler errors.
215+
--client-progress Print compilation progress in percentage in the browser.
216+
--no-client-progress Do not print compilation progress in percentage in the browser.
217+
--client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings.
218+
--no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings.
219+
--client-overlay-errors Show a full-screen overlay in the browser when there are compiler errors.
242220
--no-client-overlay-errors Negative 'client-overlay-errors' option.
243-
--client-overlay-warnings Show a full-screen overlay in the browser
244-
when there are compiler warnings.
221+
--client-overlay-warnings Show a full-screen overlay in the browser when there are compiler warnings.
245222
--no-client-overlay-warnings Negative 'client-overlay-warnings' option.
246223
--client-need-client-entry Tells devServer to inject a client entry.
247224
--no-client-need-client-entry Negative 'client-need-client-entry' option.
248-
--client-hot-entry Tells devServer to inject a Hot Module
249-
Replacement entry.
250-
--no-client-hot-entry Do not tell devServer to inject a Hot
251-
Module Replacement entry.
252-
--web-socket-server <value> Allows to set web socket server and
253-
options.
254-
--web-socket-server-type <value> Allows to set web socket server and
255-
options.
256-
--compress Enable gzip compression for everything
257-
served.
225+
--client-hot-entry Tells devServer to inject a Hot Module Replacement entry.
226+
--no-client-hot-entry Do not tell devServer to inject a Hot Module Replacement entry.
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.
258230
--no-compress Disable gzip compression.
259-
--firewall [value...] Defines routes which are enabled by
260-
default, on by default and allows
261-
localhost.
231+
--firewall [value...] Defines routes which are enabled by default, on by default and allows localhost.
262232
--no-firewall Disable firewall.
263-
--history-api-fallback When using the HTML5 History API, the
264-
index.html page will likely have to be
265-
served in place of any 404 responses.
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.
266234
--no-history-api-fallback Negative 'history-api-fallback' option.
267-
--host <value> Specify a host to use. If you want your
268-
server to be accessible externally.
269-
--hot [value] Enable webpack's Hot Module Replacement
270-
feature.
271-
--no-hot Disable webpack's Hot Module Replacement
272-
feature.
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.
273238
--http2 Serve over HTTP/2 using spdy.
274239
--no-http2 Do not use HTTP/2.
275-
--https By default, dev-server will be served over
276-
HTTP. It can optionally be served over
277-
HTTP/2 with HTTPS.
240+
--https By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS.
278241
--no-https Do not use HTTPS protocol.
279242
--https-passphrase <value> Passphrase for a pfx file.
280243
--https-request-cert Request for an SSL certificate.
@@ -283,27 +246,36 @@ Options:
283246
--https-key <value> Path to an SSL key.
284247
--https-pfx <value> Path to an SSL pfx file.
285248
--https-cert <value> Path to an SSL certificate.
286-
--live-reload By default, the dev-server will
287-
reload/refresh the page when file changes
288-
are detected.
249+
--live-reload By default, the dev-server will reload/refresh the page when file changes are detected.
289250
--no-live-reload Disables live reloading on changing files.
290-
--open [value...] Tells dev-server to open the browser after
291-
server had been started. Set it to true to
292-
open your default browser.
251+
--open [value...] Tells dev-server to open the browser after server had been started. Set it to true to open your default browser.
293252
--no-open Do not open the default browser.
294253
--open-target [value...] Open specified route in browser.
295254
--no-open-target Do not open specified route in browser.
296255
--open-app-name <value...> Open specified browser.
297256
--open-app <value> Open specified browser.
298-
--port <value> Specify a port number to listen for
299-
requests on.
300-
--public <value> When using dev server and you're proxying
301-
dev-server, the client script does not
302-
always know where to connect to. It will
303-
try to guess the URL of the server based on
304-
window.location, but if that fails you'll
305-
need to use this.
306-
--static [value...] It is possible to configure advanced
307-
options for serving static files from
308-
directory. See the Express doc"
257+
--port <value> Specify a port number to listen for requests on.
258+
--public <value> When using dev server and you're proxying dev-server, the client script does not always know where to connect to. It will try to guess the URL of the server based on window.location, but if that fails you'll need to use this.
259+
--static [value...] It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options.
260+
--no-static Negative 'static' option.
261+
--static-directory <value> Directory for static contents.
262+
--static-public-path <value...> The bundled files will be available in the browser under this path.
263+
--static-serve-index Tells dev-server to use serveIndex middleware when enabled.
264+
--no-static-serve-index Do not tell dev-server to use serveIndex middleware.
265+
--static-watch Watch for files in static content directory.
266+
--no-static-watch Do not watch for files in static content directory.
267+
--watch-files <value...> List of files to watch for file changes and serve.
268+
--watch-files-paths <value...> List of files to watch for file changes and serve.
269+
270+
Global options:
271+
--color Enable colors on console.
272+
--no-color Disable colors on console.
273+
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
274+
-h, --help [verbose] Display help for commands and options.
275+
276+
To see list of all supported commands and options run 'webpack --help=verbose'.
277+
278+
Webpack documentation: https://webpack.js.org/.
279+
CLI documentation: https://webpack.js.org/api/cli/.
280+
Made with ♥ by the webpack team."
309281
`;

0 commit comments

Comments
 (0)