Skip to content

Commit 8152d39

Browse files
committed
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.
1 parent 1c14974 commit 8152d39

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

webpack/webpack.browser.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,12 @@ module.exports = Object.assign({}, commonExports, {
3535
buildAppConfig(join(process.cwd(), 'src/assets/config.json'));
3636
return middlewares;
3737
}
38-
}
38+
},
39+
watchOptions: {
40+
// Ignore directories that should not be watched for recompiling angular
41+
ignored: [
42+
'**/node_modules', '**/_build', '**/.git', '**/docker',
43+
'**/.angular', '**/.idea', '**/.vscode', '**/.history', '**/.vsix'
44+
]
45+
},
3946
});

0 commit comments

Comments
 (0)