From c3fcef32f98b4b1a2f1d82bd53243c1b63b09e42 Mon Sep 17 00:00:00 2001 From: Teddy Ortega Date: Mon, 31 Jul 2017 10:31:13 -0400 Subject: [PATCH 01/28] dev server config - allowed-hosts - CLI --- content/configuration/dev-server.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/configuration/dev-server.md b/content/configuration/dev-server.md index da9f21fdb264..58265a3b9b62 100644 --- a/content/configuration/dev-server.md +++ b/content/configuration/dev-server.md @@ -74,6 +74,11 @@ allowedHosts: [ ] ``` +To use this option with the CLI pass the `--allowed-hosts` option a comma-delimited string. + +``` +webpack-dev-server --entry /entry/file --output-path /output/path --allowed-hosts .host.com,host2.com +``` ## `devServer.clientLogLevel` From ba84405ddf2c90a362c65082217bba11a7f74ae7 Mon Sep 17 00:00:00 2001 From: Teddy Ortega Date: Mon, 31 Jul 2017 14:07:37 -0400 Subject: [PATCH 02/28] dev server config - bonjour --- content/configuration/dev-server.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/content/configuration/dev-server.md b/content/configuration/dev-server.md index 58265a3b9b62..f654afcc7102 100644 --- a/content/configuration/dev-server.md +++ b/content/configuration/dev-server.md @@ -80,6 +80,19 @@ To use this option with the CLI pass the `--allowed-hosts` option a comma-delimi webpack-dev-server --entry /entry/file --output-path /output/path --allowed-hosts .host.com,host2.com ``` +## `devServer.bonjour` + +This option broadcasts the server via ZeroConf networking on start + +```js +bonjour: true +``` + +Usage via the CLI +``` +webpack-dev-server --bonjour +``` + ## `devServer.clientLogLevel` `string` From 2b236114e9e512cb27992b828c933cb2bcf7406b Mon Sep 17 00:00:00 2001 From: Teddy Ortega Date: Mon, 31 Jul 2017 14:09:48 -0400 Subject: [PATCH 03/28] dev server config - lazy - CLI --- content/configuration/dev-server.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/configuration/dev-server.md b/content/configuration/dev-server.md index f654afcc7102..e16976b5471a 100644 --- a/content/configuration/dev-server.md +++ b/content/configuration/dev-server.md @@ -296,6 +296,11 @@ When `lazy` is enabled, the dev-server will only compile the bundle when it gets lazy: true ``` +Usage via the CLI +``` +webpack-dev-server --lazy +``` + T> `watchOptions` will have no effect when used with **lazy mode**. T> If you use the CLI, make sure **inline mode** is disabled. From f48fb6a034e5101e85ce912907f3a0328694bd93 Mon Sep 17 00:00:00 2001 From: Teddy Ortega Date: Mon, 31 Jul 2017 14:12:43 -0400 Subject: [PATCH 04/28] dev server config - inline - CLI --- content/configuration/dev-server.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/configuration/dev-server.md b/content/configuration/dev-server.md index e16976b5471a..63660609e3db 100644 --- a/content/configuration/dev-server.md +++ b/content/configuration/dev-server.md @@ -283,6 +283,11 @@ It is also possible to use **iframe mode**, which uses an `