Ignore some paths from file watcher

Watching all these directories can cause systems to exceed
maximum watched files / inotify limits, especially in dev
mode with IDEs etc also watching files.
This commit is contained in:
Kim Shepherd
2024-09-03 14:52:10 +02:00
parent 1c1497422b
commit 8152d39ad0

View File

@@ -35,5 +35,12 @@ module.exports = Object.assign({}, commonExports, {
buildAppConfig(join(process.cwd(), 'src/assets/config.json'));
return middlewares;
}
}
},
watchOptions: {
// Ignore directories that should not be watched for recompiling angular
ignored: [
'**/node_modules', '**/_build', '**/.git', '**/docker',
'**/.angular', '**/.idea', '**/.vscode', '**/.history', '**/.vsix'
]
},
});