Skip to content

Commit

Permalink
No need to watch the node_modules folder
Browse files Browse the repository at this point in the history
  • Loading branch information
duckdoom4 committed Jul 12, 2024
1 parent fbcda49 commit 7e927a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ export const baseConfig: Configuration = {

plugins: [...basePlugins],

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/,
},

optimization: {
splitChunks: {
chunks: "async",
Expand Down

0 comments on commit 7e927a6

Please sign in to comment.