Skip to content

Commit

Permalink
docs: add watchOptions.ignore to the example on README (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-oles authored Dec 15, 2022
1 parent 3e1684b commit 365025d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ module.exports = {
}
]
},
plugins: [new ForkTsCheckerWebpackPlugin()]
plugins: [new ForkTsCheckerWebpackPlugin()],
watchOptions: {
// for some systems, watching many files can result in a lot of CPU or memory usage
// https://webpack.js.org/configuration/watch/#watchoptionsignored
// don't use this pattern, if you have a monorepo with linked packages
ignored: /node_modules/,
},
};
```

Expand Down

0 comments on commit 365025d

Please sign in to comment.