diff --git a/content/configuration/dev-server.md b/content/configuration/dev-server.md index 53ffed6b54fb..78b24e648a4c 100644 --- a/content/configuration/dev-server.md +++ b/content/configuration/dev-server.md @@ -6,6 +6,7 @@ contributors: - skipjack - spacek33z - charlespwd + - ingver --- webpack-dev-server can be used to quickly develop an application. See the ["How to Develop?"](/guides/development) to get started. @@ -170,8 +171,8 @@ For more options and information, see the [connect-history-api-fallback](https:/ Specify a host to use. By default this is `localhost`. If you want your server to be accessible externally, specify it like this: -```js -host: "0.0.0.0" +```bash +webpack-dev-server --host "0.0.0.0" ``` @@ -194,8 +195,8 @@ T> Note that you must also include a `new webpack.HotModuleReplacementPlugin()` Enables Hot Module Replacement (see [`devServer.hot`](#devserver-hot)) without page refresh as fallback in case of build failures. -```js -hotOnly: true +```bash +webpack-dev-server --hot-only ``` @@ -230,8 +231,8 @@ Toggle between the dev-server's two different modes. By default the application It is also possible to use **iframe mode**, which uses an `