You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
entry: ['webpack-dev-server/client?http://0.0.0.0:8080',// WebpackDevServer host and port'webpack/hot/only-dev-server','./scripts/index'// Your appʼs entry point]
IIRC webpack/hot/dev-server will reload page if HMR can't be cleanly updated, webpack/hot/only-dev-server won't: webpack/webpack#418 (comment). I find F5-reloading very distracting and rarely want it so I suggest to have that turned off by default.
As for not needing webpack-dev-server/client — docs suggest you use --inline mode in CLI which injects this script automatically. I don't use inline mode (it seems unsupported from Node API) so I write it explicitly. I also prefer it being explicit so I better understand the complete picture of what's going on.
This loader uses config:
while the official docs suggests:
http://webpack.github.io/docs/webpack-dev-server.html
Why is this different?
The text was updated successfully, but these errors were encountered: