diff --git a/lib/install/config/webpacker.yml b/lib/install/config/webpacker.yml index 6d19bb798..860644cc8 100644 --- a/lib/install/config/webpacker.yml +++ b/lib/install/config/webpacker.yml @@ -26,6 +26,8 @@ development: port: 3035 # Hot Module Replacement updates modules while the application is running without a full reload hmr: false + # Defaults to the inverse of hmr. Uncomment to manually set this. + # live_reload: true client: # Should we show a full-screen overlay in the browser when there are compiler errors or warnings? overlay: true diff --git a/package/environments/development.js b/package/environments/development.js index 8784946d0..f712b5179 100644 --- a/package/environments/development.js +++ b/package/environments/development.js @@ -12,6 +12,11 @@ let devConfig = { } if (runningWebpackDevServer) { + let liveReload = !devServer.hmr + if (devServer.live_reload !== undefined) { + liveReload = devServer.live_reload + } + const devServerConfig = { devMiddleware: { publicPath @@ -22,7 +27,7 @@ if (runningWebpackDevServer) { port: devServer.port, https: devServer.https, hot: devServer.hmr, - liveReload: !devServer.hmr, + liveReload, historyApiFallback: { disableDotRule: true }, headers: devServer.headers, static: {