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.
  • Loading branch information
kshepherd committed Sep 3, 2024
1 parent 1c14974 commit 8152d39
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 8152d39

Please sign in to comment.