diff --git a/fixtures/flight/config/webpack.config.js b/fixtures/flight/config/webpack.config.js index f1579c3a7b7b0..9b4b7edb09c71 100644 --- a/fixtures/flight/config/webpack.config.js +++ b/fixtures/flight/config/webpack.config.js @@ -208,7 +208,13 @@ module.exports = function (webpackEnv) { : isEnvDevelopment && 'cheap-module-source-map', // These are the "entry points" to our application. // This means they will be the "root" imports that are included in JS bundle. - entry: paths.appIndexJs, + entry: isEnvProduction + ? [paths.appIndexJs] + : [ + paths.appIndexJs, + // HMR client + 'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000', + ], output: { // The build folder. path: paths.appBuild, @@ -571,6 +577,7 @@ module.exports = function (webpackEnv) { ].filter(Boolean), }, plugins: [ + new webpack.HotModuleReplacementPlugin(), // Generates an `index.html` file with the