Skip to content

Commit

Permalink
Update webpack-dev-server docs for proper app entry point when using …
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Feb 18, 2016
1 parent 46938dc commit f09f6a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack-dev-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ To use the inline mode, specify `--inline` on the command line (you cannot speci

There is no `inline: true` flag in the webpack-dev-server configuration, because the webpack-dev-server module has no access to the webpack configuration. Instead the user must add the webpack-dev-server client entry point to the webpack configuration.

To do this just add `webpack-dev-server/client?http://<path>:<port>` to (all) entry point(s). I. e. with the above configuration:
To do this just add `webpack-dev-server/client?http://<path>:<port>/` to (all) entry point(s). I. e. with the above configuration:

``` js
var config = require("./webpack.config.js");
config.entry.app.unshift("webpack-dev-server/client?http://localhost:8080");
config.entry.app.unshift("webpack-dev-server/client?http://localhost:8080/");
var compiler = webpack(config);
var server = new webpackDevServer(compiler, {...});
server.listen(8080);
Expand Down Expand Up @@ -130,7 +130,7 @@ I. e. with the above configuration:

``` js
var config = require("./webpack.config.js");
config.entry.app.unshift("webpack-dev-server/client?http://localhost:8080", "webpack/hot/dev-server");
config.entry.app.unshift("webpack-dev-server/client?http://localhost:8080/", "webpack/hot/dev-server");
var compiler = webpack(config);
var server = new webpackDevServer(compiler, {
hot: true
Expand Down

0 comments on commit f09f6a1

Please sign in to comment.