You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--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.
--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.
276
277
277
278
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.
282
283
283
284
To see list of all supported commands and options run 'webpack --help=verbose'.
0 commit comments