Skip to content

Commit 365025d

Browse files
authored
docs: add watchOptions.ignore to the example on README (#786)
1 parent 3e1684b commit 365025d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ module.exports = {
6161
}
6262
]
6363
},
64-
plugins: [new ForkTsCheckerWebpackPlugin()]
64+
plugins: [new ForkTsCheckerWebpackPlugin()],
65+
watchOptions: {
66+
// for some systems, watching many files can result in a lot of CPU or memory usage
67+
// https://webpack.js.org/configuration/watch/#watchoptionsignored
68+
// don't use this pattern, if you have a monorepo with linked packages
69+
ignored: /node_modules/,
70+
},
6571
};
6672
```
6773

0 commit comments

Comments
 (0)