Skip to content
Permalink
Browse files

use poll for hmr

  • Loading branch information...
MarxJiao committed Feb 17, 2019
1 parent 697eef5 commit 0cda390823172088db4c4d194f2445bd0d23243a
Showing with 3 additions and 3 deletions.
  1. +3 −3 config/Webpack.config.ts
@@ -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']
}),
]

0 comments on commit 0cda390

Please sign in to comment.
You can’t perform that action at this time.