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
267
-
server to be accessible externally.
268
-
--hot [value] Enable webpack's Hot Module Replacement
269
-
feature.
270
-
--no-hot Disable webpack's Hot Module Replacement
271
-
feature.
234
+
--host <value> Specify a host to use. If you want your server to be accessible externally.
235
+
--hot [value] Enable webpack's Hot Module Replacement feature.
236
+
--no-hot Disable webpack's Hot Module Replacement feature.
272
237
--http2 Serve over HTTP/2 using spdy.
273
238
--no-http2 Do not use HTTP/2.
274
-
--https By default, dev-server will be served over
275
-
HTTP. It can optionally be served over
276
-
HTTP/2 with HTTPS.
239
+
--https By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS.
277
240
--no-https Do not use HTTPS protocol.
278
241
--https-passphrase <value> Passphrase for a pfx file.
279
242
--https-request-cert Request for an SSL certificate.
@@ -282,28 +245,36 @@ Options:
282
245
--https-key <value> Path to an SSL key.
283
246
--https-pfx <value> Path to an SSL pfx file.
284
247
--https-cert <value> Path to an SSL certificate.
285
-
--live-reload By default, the dev-server will
286
-
reload/refresh the page when file changes
287
-
are detected.
248
+
--live-reload By default, the dev-server will reload/refresh the page when file changes are detected.
288
249
--no-live-reload Disables live reloading on changing files.
289
-
--open [value...] Tells dev-server to open the browser after
290
-
server had been started. Set it to true to
291
-
open your default browser.
250
+
--open [value...] Tells dev-server to open the browser after server had been started. Set it to true to open your default browser.
292
251
--no-open Do not open the default browser.
293
252
--open-target [value...] Open specified route in browser.
294
253
--no-open-target Do not open specified route in browser.
295
254
--open-app-name <value...> Open specified browser.
296
255
--open-app <value> Open specified browser.
297
-
--port <value> Specify a port number to listen for
298
-
requests on.
299
-
--public <value> When using dev server and you're proxying
300
-
dev-server, the client script does not
301
-
always know where to connect to. It will
302
-
try to guess the URL of the server based on
303
-
window.location, but if that fails you'll
304
-
need to use this.
305
-
--static [value...] It is possible to configure advanced
306
-
options for serving static files from
307
-
directory. See the Express documentation
308
-
for the possibl"
256
+
--port <value> Specify a port number to listen for requests on.
257
+
--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.
258
+
--static [value...] It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options.
259
+
--no-static Negative 'static' option.
260
+
--static-directory <value> Directory for static contents.
261
+
--static-public-path <value...> The bundled files will be available in the browser under this path.
262
+
--static-serve-index Tells dev-server to use serveIndex middleware when enabled.
263
+
--no-static-serve-index Do not tell dev-server to use serveIndex middleware.
264
+
--static-watch Watch for files in static content directory.
265
+
--no-static-watch Do not watch for files in static content directory.
266
+
--watch-files <value...> List of files to watch for file changes and serve.
267
+
--watch-files-paths <value...> List of files to watch for file changes and serve.
268
+
269
+
Global options:
270
+
--color Enable colors on console.
271
+
--no-color Disable colors on console.
272
+
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
273
+
-h, --help [verbose] Display help for commands and options.
274
+
275
+
To see list of all supported commands and options run 'webpack --help=verbose'.
0 commit comments