Skip to content

Commit

Permalink
Fix HMR issue on html change
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkin authored Mar 10, 2019
1 parent 1c0ca7c commit eb9587a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ module.exports = {
progress: true,
compress: true,
hot: true,
inline: true
inline: true,
before(app, server) { // https://github.com/webpack/webpack-dev-server/issues/1271#issuecomment-379792541
server._watch(`./src/*.html`);
}
}
}
}

0 comments on commit eb9587a

Please sign in to comment.