fix: ignore node_modules watcher

This commit is contained in:
lawvs
2022-09-22 22:38:59 +08:00
parent 47bbf187a5
commit 08a19ae240
+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;