Skip to content

Commit 6b8a165

Browse files
jasonblanchardskipjack
authored andcommitted
docs(config): clarify stats option sort and default (#1596)
1 parent ef71ac8 commit 6b8a165

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/configuration/stats.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ contributors:
66
- sallar
77
- jungomi
88
- ldrick
9+
- jasonblanchard
910
---
1011

1112
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.
@@ -40,6 +41,7 @@ stats: {
4041
// Add asset Information
4142
assets: true,
4243
// Sort assets by a field
44+
// You can reverse the sort with `!field`.
4345
assetsSort: "field",
4446
// Add information about cached (not built) modules
4547
cached: true,
@@ -54,6 +56,7 @@ stats: {
5456
// Add the origins of chunks and chunk merging info
5557
chunkOrigins: true,
5658
// Sort the chunks by a field
59+
// You can reverse the sort with `!field`. Default is `id`.
5760
chunksSort: "field",
5861
// Context directory for request shortening
5962
context: "../src/",
@@ -87,6 +90,7 @@ stats: {
8790
// Add built modules information
8891
modules: true,
8992
// Sort the modules by a field
93+
// You can reverse the sort with `!field`. Default is `id`.
9094
modulesSort: "field",
9195
// Show dependencies and origin of warnings/errors (since webpack 2.5.0)
9296
moduleTrace: true,

0 commit comments

Comments
 (0)