mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
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.
(cherry picked from commit 8152d39ad0
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
ef4496fd21
commit
fa95f56be0
@@ -35,5 +35,12 @@ module.exports = Object.assign({}, commonExports, {
|
|||||||
buildAppConfig(join(process.cwd(), 'src/assets/config.json'));
|
buildAppConfig(join(process.cwd(), 'src/assets/config.json'));
|
||||||
return middlewares;
|
return middlewares;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
watchOptions: {
|
||||||
|
// Ignore directories that should not be watched for recompiling angular
|
||||||
|
ignored: [
|
||||||
|
'**/node_modules', '**/_build', '**/.git', '**/docker',
|
||||||
|
'**/.angular', '**/.idea', '**/.vscode', '**/.history', '**/.vsix'
|
||||||
|
]
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user