Skip to content

Commit d67e4f5

Browse files
docs(hot-reload): fix WatchIgnorePlugin in hot reload docs
Supercedes #1568
1 parent aa4fa53 commit d67e4f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/recipes/hot-reload.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ module.exports = function(options) {
3838
plugins: [
3939
...options.plugins,
4040
new webpack.HotModuleReplacementPlugin(),
41-
new webpack.WatchIgnorePlugin([/\.js$/, /\.d\.ts$/]),
41+
new webpack.WatchIgnorePlugin({
42+
paths: [/\.js$/, /\.d\.ts$/],
43+
}),
4244
new RunScriptWebpackPlugin({ name: options.output.filename }),
4345
],
4446
};

0 commit comments

Comments
 (0)