Skip to content

Commit 0cda390

Browse files
committed
use poll for hmr
1 parent 697eef5 commit 0cda390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/Webpack.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ class WebpackConfig implements Configuration {
3838
constructor(mode: Configuration['mode']) {
3939
this.mode = mode;
4040
if (mode === 'development') {
41-
this.entry.push('webpack/hot/signal');
41+
this.entry.push('webpack/hot/poll?1000');
4242
this.externals.push(
4343
nodeExternals({
44-
whitelist: ['webpack/hot/signal']
44+
whitelist: ['webpack/hot/poll?1000']
4545
})
4646
);
4747
const devPlugins = [
4848
new webpack.HotModuleReplacementPlugin(),
4949
new StartServerPlugin({
5050
name: 'server.js',
51-
signal: true,
51+
signal: false,
5252
nodeArgs: ['--inspect']
5353
}),
5454
]

0 commit comments

Comments
 (0)