Skip to content

Commit

Permalink
use poll for hmr
Browse files Browse the repository at this point in the history
  • Loading branch information
MarxJiao committed Feb 17, 2019
1 parent 697eef5 commit 0cda390
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/Webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ class WebpackConfig implements Configuration {
constructor(mode: Configuration['mode']) {
this.mode = mode;
if (mode === 'development') {
this.entry.push('webpack/hot/signal');
this.entry.push('webpack/hot/poll?1000');
this.externals.push(
nodeExternals({
whitelist: ['webpack/hot/signal']
whitelist: ['webpack/hot/poll?1000']
})
);
const devPlugins = [
new webpack.HotModuleReplacementPlugin(),
new StartServerPlugin({
name: 'server.js',
signal: true,
signal: false,
nodeArgs: ['--inspect']
}),
]
Expand Down

0 comments on commit 0cda390

Please sign in to comment.