You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* docs(watch): Update `watchOptions` types
Update `watchOptions` type to reflect what is allowed by `watchpack`. Also adds an additional example.
Closes #11903
* Update src/content/configuration/watch.md
Co-authored-by: Sam Chen <chenxsan@gmail.com>
For some systems, watching many file systems can result in a lot of CPU or memory usage. It is possible to exclude a huge folder like `node_modules`:
75
+
For some systems, watching many files can result in a lot of CPU or memory usage. It is possible to exclude a huge folder like `node_modules` using a regular expression:
76
76
77
77
__webpack.config.js__
78
78
@@ -85,7 +85,20 @@ module.exports = {
85
85
};
86
86
```
87
87
88
-
It is also possible to have and use multiple [anymatch](https://github.com/micromatch/anymatch) patterns:
88
+
Alternatively, a glob pattern may be used:
89
+
90
+
__webpack.config.js__
91
+
92
+
```javascript
93
+
module.exports= {
94
+
//...
95
+
watchOptions: {
96
+
ignored:'node_modules/**'
97
+
}
98
+
};
99
+
```
100
+
101
+
It is also possible to use multiple glob patterns:
0 commit comments