Skip to content

Commit 4ac12f7

Browse files
committed
test: webpack-4 snap
1 parent de50f0c commit 4ac12f7

File tree

1 file changed

+85
-73
lines changed

1 file changed

+85
-73
lines changed

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

Lines changed: 85 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -154,81 +154,93 @@ exports[`CLI should generate correct cli flags 1`] = `
154154
Run the webpack dev server.
155155

156156
Options:
157-
-c, --config <value...> Provide path to a webpack configuration file e.g.
158-
./webpack.config.js.
159-
--config-name <value...> Name of the configuration to use.
160-
-m, --merge Merge two or more configurations using
161-
'webpack-merge'.
162-
--env <value...> Environment passed to the configuration when it is
163-
a function.
164-
--node-env <value> Sets process.env.NODE_ENV to the specified value.
165-
--progress [value] Print compilation progress during build.
166-
-j, --json [value] Prints result as JSON or store it in a file.
167-
--entry <value...> The entry point(s) of your application e.g.
168-
./src/main.js.
169-
-o, --output-path <value> Output location of the file generated by webpack
170-
e.g. ./dist/.
171-
-t, --target <value> Sets the build target e.g. node.
172-
-d, --devtool <value> Determine source maps to use.
173-
--mode <value> Defines the mode to pass to webpack.
174-
--name <value> Name of the configuration. Used when loading
175-
multiple configurations.
176-
--stats [value] It instructs webpack on how to treat the stats
177-
e.g. verbose.
178-
--no-stats Disable stats output.
179-
--watch-options-stdin Stop watching when stdin stream has ended.
180-
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
181-
--host <value> The hostname/ip address the server will bind to.
182-
--port <value> The port server will listen to.
183-
--static [value...] A directory to serve static content from.
184-
--no-static Negative 'static' option.
185-
--live-reload Enables live reloading on changing files.
186-
--no-live-reload Disables live reloading on changing files.
187-
--https Use HTTPS protocol.
188-
--no-https Do not use HTTPS protocol.
189-
--http2 Use HTTP/2, must be used with HTTPS.
190-
--no-http2 Do not use HTTP/2.
191-
--bonjour Broadcasts the server via ZeroConf networking on
192-
start.
193-
--no-bonjour Do not broadcast the server via ZeroConf
194-
networking on start.
195-
--client-progress Print compilation progress in percentage in the
196-
browser.
197-
--no-client-progress Do not print compilation progress in percentage in
198-
the browser.
199-
--client-overlay Show a full-screen overlay in the browser when
200-
there are compiler errors or warnings.
201-
--no-client-overlay Do not show a full-screen overlay in the browser
202-
when there are compiler errors or warnings.
203-
--setup-exit-signals Close and exit the process on SIGINT and SIGTERM.
204-
--no-setup-exit-signals Do not close and exit the process on SIGNIT and
205-
SIGTERM.
206-
--open [value...] Open the default browser.
207-
--no-open Do not open the default browser.
208-
--open-app <value> Open specified browser.
209-
--open-target [value...] Open specified route in browser.
210-
--no-open-target Do not open specified route in browser.
211-
--client-logging <value> Log level in the browser (none, error, warn, info,
212-
log, verbose).
213-
--history-api-fallback Fallback to /index.html for Single Page
214-
Applications.
215-
--no-history-api-fallback Do not fallback to /index.html for Single Page
216-
Applications.
217-
--compress Enable gzip compression.
218-
--no-compress Disable gzip compression.
219-
--public <value> The public hostname/ip address of the server.
220-
--firewall [value...] Enable firewall or set hosts that are allowed to
221-
access the dev server.
222-
--no-firewall Disable firewall.
223-
--watch-files <value...> Watch static files for file changes.
157+
-c, --config <value...> Provide path to a webpack configuration file
158+
e.g. ./webpack.config.js.
159+
--config-name <value...> Name of the configuration to use.
160+
-m, --merge Merge two or more configurations using
161+
'webpack-merge'.
162+
--env <value...> Environment passed to the configuration when
163+
it is a function.
164+
--node-env <value> Sets process.env.NODE_ENV to the specified
165+
value.
166+
--progress [value] Print compilation progress during build.
167+
-j, --json [value] Prints result as JSON or store it in a file.
168+
-d, --devtool <value> Determine source maps to use.
169+
--entry <value...> The entry point(s) of your application e.g.
170+
./src/main.js.
171+
--mode <value> Defines the mode to pass to webpack.
172+
--name <value> Name of the configuration. Used when loading
173+
multiple configurations.
174+
-o, --output-path <value> Output location of the file generated by
175+
webpack e.g. ./dist/.
176+
--stats [value] It instructs webpack on how to treat the stats
177+
e.g. verbose.
178+
--no-stats Disable stats output.
179+
-t, --target <value...> Sets the build target e.g. node.
180+
--watch-options-stdin Stop watching when stdin stream has ended.
181+
--no-watch-options-stdin Do not stop watching when stdin stream has
182+
ended.
183+
--host <value> The hostname/ip address the server will bind
184+
to.
185+
--port <value> The port server will listen to.
186+
--static [value...] A directory to serve static content from.
187+
--no-static Negative 'static' option.
188+
--live-reload Enables live reloading on changing files.
189+
--no-live-reload Disables live reloading on changing files.
190+
--https Use HTTPS protocol.
191+
--no-https Do not use HTTPS protocol.
192+
--http2 Use HTTP/2, must be used with HTTPS.
193+
--no-http2 Do not use HTTP/2.
194+
--bonjour Broadcasts the server via ZeroConf networking
195+
on start.
196+
--no-bonjour Do not broadcast the server via ZeroConf
197+
networking on start.
198+
--client-progress Print compilation progress in percentage in
199+
the browser.
200+
--no-client-progress Do not print compilation progress in
201+
percentage in the browser.
202+
--client-overlay Show a full-screen overlay in the browser when
203+
there are compiler errors or warnings.
204+
--no-client-overlay Do not show a full-screen overlay in the
205+
browser when there are compiler errors or
206+
warnings.
207+
--client-need-client-entry Tell devServer to inject a client entry.
208+
--no-client-need-client-entry Do not tell devServer to inject a client
209+
entry.
210+
--client-need-hot-entry Tell devServer to inject a Hot Module
211+
Replacement entry.
212+
--no-client-need-hot-entry Do not tell devServer to inject a Hot Module
213+
Replacement entry.
214+
--setup-exit-signals Close and exit the process on SIGINT and
215+
SIGTERM.
216+
--no-setup-exit-signals Do not close and exit the process on SIGNIT
217+
and SIGTERM.
218+
--open [value...] Open the default browser.
219+
--no-open Do not open the default browser.
220+
--open-app <value> Open specified browser.
221+
--open-target [value...] Open specified route in browser.
222+
--no-open-target Do not open specified route in browser.
223+
--client-logging <value> Log level in the browser (none, error, warn,
224+
info, log, verbose).
225+
--history-api-fallback Fallback to /index.html for Single Page
226+
Applications.
227+
--no-history-api-fallback Do not fallback to /index.html for Single Page
228+
Applications.
229+
--compress Enable gzip compression.
230+
--no-compress Disable gzip compression.
231+
--public <value> The public hostname/ip address of the server.
232+
--firewall [value...] Enable firewall or set hosts that are allowed
233+
to access the dev server.
234+
--no-firewall Disable firewall.
235+
--watch-files <value...> Watch static files for file changes.
224236

225237
Global options:
226-
--color Enable colors on console.
227-
--no-color Disable colors on console.
228-
-v, --version Output the version number of 'webpack',
229-
'webpack-cli' and 'webpack-dev-server' and
230-
commands.
231-
-h, --help [verbose] Display help for commands and options.
238+
--color Enable colors on console.
239+
--no-color Disable colors on console.
240+
-v, --version Output the version number of 'webpack',
241+
'webpack-cli' and 'webpack-dev-server' and
242+
commands.
243+
-h, --help [verbose] Display help for commands and options.
232244

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

0 commit comments

Comments
 (0)