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
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.
273
238
--http2 Serve over HTTP/2 using spdy.
274
239
--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.
278
241
--no-https Do not use HTTPS protocol.
279
242
--https-passphrase <value> Passphrase for a pfx file.
280
243
--https-request-cert Request for an SSL certificate.
@@ -283,27 +246,36 @@ Options:
283
246
--https-key <value> Path to an SSL key.
284
247
--https-pfx <value> Path to an SSL pfx file.
285
248
--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.
289
250
--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.
293
252
--no-open Do not open the default browser.
294
253
--open-target [value...] Open specified route in browser.
295
254
--no-open-target Do not open specified route in browser.
296
255
--open-app-name <value...> Open specified browser.
297
256
--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'.
0 commit comments