Merge pull request #455 from toeverything/fix/file-watchers-limit

fix: ignore node_modules watcher
This commit is contained in:
DarkSky
2022-09-22 23:38:15 +08:00
committed by GitHub
+2 -2
View File
@@ -203,10 +203,10 @@ module.exports = function (webpackConfig) {
new BundleAnalyzerPlugin({ analyzerMode: 'static' }),
].filter(Boolean);
// Workaround for webpack infinite recompile errors
config.watchOptions = {
// followSymlinks: false,
ignored: ['**/*.css'],
// Ignore css to workaround webpack infinite recompile errors
ignored: ['**/node_modules', '**/*.css'],
};
return config;