WebPack disable HMR
I added --no-line
to my invocation of webpack-dev-server and this solved my issue.
Here's my package.json:
{ "scripts": { "start": "webpack-dev-server --no-inline”, … }}
You can put hotreload=false
anywhere in the query string, even #hotreload=false
works.
You will still get:
[WDS] App updated. Recompiling...
in the console log, but the page won't actually reload.
This behavior is possibly subject to change. I just found it by searching for WDS
in my vendor.js file and working backwards :-)
In order to disable HMR you need to add the following to your webpack config
{ devServer: { hot: false, // disable HMR }, plugins: [],}
More here