Ignore node modules in webpack watch

old-stable24
Varun Patil 2022-10-15 12:21:53 -07:00
parent ea49c4430d
commit 6be7c76d81
1 changed files with 5 additions and 0 deletions

View File

@ -16,4 +16,9 @@ webpackConfig.resolve.alias = {
webpackConfig.entry.main = path.resolve(path.join('src', 'main')); webpackConfig.entry.main = path.resolve(path.join('src', 'main'));
delete webpackConfig.optimization.splitChunks; delete webpackConfig.optimization.splitChunks;
webpackConfig.watchOptions = {
ignored: /node_modules/,
aggregateTimeout: 300,
};
module.exports = webpackConfig module.exports = webpackConfig