Skip to content

docs(config): Clarify stats option sort and default #1596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/content/configuration/stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ contributors:
- sallar
- jungomi
- ldrick
- jasonblanchard
---

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.
Expand Down Expand Up @@ -40,6 +41,7 @@ stats: {
// Add asset Information
assets: true,
// Sort assets by a field
// You can reverse the sort with `!field`.
assetsSort: "field",
// Add information about cached (not built) modules
cached: true,
Expand All @@ -54,6 +56,7 @@ stats: {
// Add the origins of chunks and chunk merging info
chunkOrigins: true,
// Sort the chunks by a field
// You can reverse the sort with `!field`. Default is `id`.
chunksSort: "field",
// Context directory for request shortening
context: "../src/",
Expand Down Expand Up @@ -87,6 +90,7 @@ stats: {
// Add built modules information
modules: true,
// Sort the modules by a field
// You can reverse the sort with `!field`. Default is `id`.
modulesSort: "field",
// Show dependencies and origin of warnings/errors (since webpack 2.5.0)
moduleTrace: true,
Expand Down