mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 20:57:08 +08:00
Merge pull request #455 from toeverything/fix/file-watchers-limit
fix: ignore node_modules watcher
This commit is contained in:
@@ -203,10 +203,10 @@ module.exports = function (webpackConfig) {
|
|||||||
new BundleAnalyzerPlugin({ analyzerMode: 'static' }),
|
new BundleAnalyzerPlugin({ analyzerMode: 'static' }),
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
// Workaround for webpack infinite recompile errors
|
|
||||||
config.watchOptions = {
|
config.watchOptions = {
|
||||||
// followSymlinks: false,
|
// followSymlinks: false,
|
||||||
ignored: ['**/*.css'],
|
// Ignore css to workaround webpack infinite recompile errors
|
||||||
|
ignored: ['**/node_modules', '**/*.css'],
|
||||||
};
|
};
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
Reference in New Issue
Block a user