Skip to content

Commit

Permalink
Added extra parameter to npm start script to avoid webpack-dev-server…
Browse files Browse the repository at this point in the history
… ipv6 problem

When running the project as is using `npm start` no page was served on http://localhost:8080/ on my machine.
This is due to webpack-dev-server is using IPV4 and newer laptops and browsers are using IPV6.
The issue is fixed here: webpack/webpack-dev-server#676

Adding `--host ::` will ensure the project runs and serves the page correctly on newer browsers.
  • Loading branch information
konstantib authored Apr 18, 2020
1 parent f039d50 commit e835e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Add the following to the `package.json` file:
"webpack-dev-server": "^3.1.5"
},
"scripts": {
"start": "webpack && webpack-dev-server --mode development",
"start": "webpack && webpack-dev-server --mode development --host ::",
"build": "webpack"
}
}
Expand Down

0 comments on commit e835e15

Please sign in to comment.