Skip to content

Commit 128854c

Browse files
sample(webpack): add watch ignore plugin
1 parent 58d850d commit 128854c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sample/08-webpack/webpack-hmr.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ module.exports = function(options, webpack) {
1111
],
1212
plugins: [
1313
...options.plugins,
14+
new webpack.WatchIgnorePlugin({
15+
paths: [/\.js$/, /\.d\.ts$/],
16+
}),
1417
new webpack.HotModuleReplacementPlugin(),
1518
],
1619
};

0 commit comments

Comments
 (0)