Skip to content

Commit bba60b2

Browse files
ldrickskipjack
authored andcommitted
docs(config): add new exclude options in stats (#1472)
Add `excludeAssets` and `excludeModules` to with details on both options options.
1 parent 49208bf commit bba60b2

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

content/configuration/stats.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ contributors:
55
- SpaceK33z
66
- sallar
77
- jungomi
8+
- ldrick
89
---
910

1011
The `stats` option lets you precisely control what bundle information gets displayed. This can be a nice middle ground if you don't want to use `quiet` or `noInfo` because you want some bundle information, but not all of it.
@@ -66,8 +67,19 @@ stats: {
6667
errors: true,
6768
// Add details to errors (like resolving log)
6869
errorDetails: true,
69-
// Exclude modules which match one of the given strings or regular expressions
70-
exclude: [],
70+
// Exclude assets from being displayed in stats
71+
// This can be done with a String, a RegExp, a Function getting the assets name
72+
// and returning a boolean or an Array of the above.
73+
excludeAssets: "filter" | /filter/ | (assetName) => ... return true|false |
74+
["filter"] | [/filter/] | [(assetName) => ... return true|false],
75+
// Exclude modules from being displayed in stats
76+
// This can be done with a String, a RegExp, a Function getting the modules source
77+
// and returning a boolean or an Array of the above.
78+
excludeModules: "filter" | /filter/ | (moduleSource) => ... return true|false |
79+
["filter"] | [/filter/] | [(moduleSource) => ... return true|false],
80+
// See excludeModules
81+
exclude: "filter" | /filter/ | (moduleSource) => ... return true|false |
82+
["filter"] | [/filter/] | [(moduleSource) => ... return true|false],
7183
// Add the hash of the compilation
7284
hash: true,
7385
// Set the maximum number of modules to be shown

0 commit comments

Comments
 (0)