From 8c0ff929b7e44c4c7f9dd6cfaa7ec03c3602a33c Mon Sep 17 00:00:00 2001 From: Stephen Rivas JR Date: Thu, 15 Sep 2016 14:27:42 -0700 Subject: [PATCH] Reload app when `paths.appHtml` changes #656 --- config/webpack.config.dev.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 34bda5590a3..50b1b6cf33d 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -49,10 +49,15 @@ module.exports = { // We ship a few polyfills by default. require.resolve('./polyfills'), // Finally, this is your app's code: - path.join(paths.appSrc, 'index') + path.join(paths.appSrc, 'index'), // We include the app code last so that if there is a runtime error during // initialization, it doesn't blow up the WebpackDevServer client, and // changing JS code would still trigger a refresh. + + // Not sure if this is the correct place for this, or what the documentation would need + // however, this fixes the reload issue. Also not sure what it might break, so I welcome + // feedback if this is a useful update + path.join(paths.appHtml) ], output: { // Next line is not used in dev but WebpackDevServer crashes without it: