We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e3fd2 commit 4178f64Copy full SHA for 4178f64
lib/config-generator.js
@@ -597,6 +597,16 @@ class ConfigGenerator {
597
headers: { 'Access-Control-Allow-Origin': '*' },
598
compress: true,
599
historyApiFallback: true,
600
+ // In webpack-dev-server v4 beta 0, liveReload always causes
601
+ // the page to refresh, not allowing HMR to update the page.
602
+ // This is somehow related to the "static" option, but it's
603
+ // unknown if there is a better option.
604
+ // See https://github.com/webpack/webpack-dev-server/issues/2893
605
+ liveReload: false,
606
+ client: {
607
+ // see https://github.com/symfony/webpack-encore/issues/931#issuecomment-784483725
608
+ host: this.webpackConfig.runtimeConfig.devServerHost,
609
+ }
610
};
611
612
return applyOptionsCallback(
0 commit comments