Skip to content

Commit 8c0ff92

Browse files
authored
Reload app when paths.appHtml changes facebook#656
1 parent b98c556 commit 8c0ff92

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

config/webpack.config.dev.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,15 @@ module.exports = {
4949
// We ship a few polyfills by default.
5050
require.resolve('./polyfills'),
5151
// Finally, this is your app's code:
52-
path.join(paths.appSrc, 'index')
52+
path.join(paths.appSrc, 'index'),
5353
// We include the app code last so that if there is a runtime error during
5454
// initialization, it doesn't blow up the WebpackDevServer client, and
5555
// changing JS code would still trigger a refresh.
56+
57+
// Not sure if this is the correct place for this, or what the documentation would need
58+
// however, this fixes the reload issue. Also not sure what it might break, so I welcome
59+
// feedback if this is a useful update
60+
path.join(paths.appHtml)
5661
],
5762
output: {
5863
// Next line is not used in dev but WebpackDevServer crashes without it:

0 commit comments

Comments
 (0)