From 04e1d84c459348d1dde06045c3c7db5775eae4ad Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Tue, 13 Sep 2016 17:35:24 +0530 Subject: [PATCH] Allow to reload if HMR goes crazy. --- dist/server/config/webpack.config.js | 2 +- src/server/config/webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/server/config/webpack.config.js b/dist/server/config/webpack.config.js index 2c8951854eaa..9682434de4c4 100644 --- a/dist/server/config/webpack.config.js +++ b/dist/server/config/webpack.config.js @@ -28,7 +28,7 @@ var config = { devtool: '#cheap-module-eval-source-map', entry: { manager: [require.resolve('./polyfills'), require.resolve('../../client/manager')], - preview: [require.resolve('./polyfills'), require.resolve('./error_enhancements'), require.resolve('webpack-hot-middleware/client')] + preview: [require.resolve('./polyfills'), require.resolve('./error_enhancements'), require.resolve('webpack-hot-middleware/client') + '?reload=true'] }, output: { path: _path2.default.join(__dirname, 'dist'), diff --git a/src/server/config/webpack.config.js b/src/server/config/webpack.config.js index dea819c3d988..c690c81a588c 100644 --- a/src/server/config/webpack.config.js +++ b/src/server/config/webpack.config.js @@ -14,7 +14,7 @@ const config = { preview: [ require.resolve('./polyfills'), require.resolve('./error_enhancements'), - require.resolve('webpack-hot-middleware/client'), + `${require.resolve('webpack-hot-middleware/client')}?reload=true`, ], }, output: {