2👍
✅
In your package.json
, change the dev
script.
By default, it is:
cross-env NODE_ENV=development webpack-dev-server --open --hot
Which defaults to localhost, so you can use this:
cross-env NODE_ENV=development webpack-dev-server --open --hot --host 0.0.0.0
Source:stackexchange.com