Closed
Description
Since upgrading from 0.33.0 to 1.0+ my HMR stopped working.
it detects the changes, however we're getting the following message logged out into the console
[webpack-dev-server] Content base changed. Reloading...
And the the page does a full reload. Previously it would do live reloading via pmmmwh/react-refresh-webpack-plugin
To fix it I've added
Encore.configureDevServerOptions(options => {
options.liveReload = false;
});
I'm not sure if this is an issue for here, webpack-dev-server or pmmmwh/react-refresh-webpack-plugin but given this was the dependency I updated I thought I'd start at the top.
Another issue I ran into is that I had to set the client host as otherwise the websocket was trying to connect via my server rather than the dev-server.
options.client = {
...options.client,
host: 'localhost',
};
Metadata
Metadata
Assignees
Labels
No labels