Skip to content

Commit

Permalink
Ignore some paths from file watcher
Browse files Browse the repository at this point in the history
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 8152d39)
  • Loading branch information
kshepherd authored and github-actions[bot] committed Sep 4, 2024
1 parent 8d459e7 commit 91b8829
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion webpack/webpack.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]
},
});

0 comments on commit 91b8829

Please sign in to comment.