On this page

Stats options object.

Attributes
Fallback value for stats options when an option is not defined (has precedence over local webpack defaults).
assets:<boolean>
Add assets information.
assetsSort:<string>
Sort the assets by that field.
assetsSpace:<number>
Space to display assets (groups will be collapsed to fit this space).
builtAt:<boolean>
Add built at time information.
cached:<boolean>
Add information about cached (not built) modules (deprecated: use 'cachedModules' instead).
cachedAssets:<boolean>
Show cached assets (setting this to  false only shows emitted files).
cachedModules:<boolean>
Add information about cached (not built) modules.
children:<boolean>
Add children information.
chunkGroupAuxiliary:<boolean>
Display auxiliary assets in chunk groups.
chunkGroupChildren:<boolean>
Display children of chunk groups.
chunkGroupMaxAssets:<number>
Limit of assets displayed in chunk groups.
chunkGroups:<boolean>
Display all chunk groups with the corresponding bundles.
chunkModules:<boolean>
Add built modules information to chunk information.
chunkModulesSpace:<number>
Space to display chunk modules (groups will be collapsed to fit this space, value is in number of modules/group).
chunkOrigins:<boolean>
Add the origins of chunks and chunk merging info.
chunkRelations:<boolean>
Add information about parent, children and sibling chunks to chunk information.
chunks:<boolean>
Add chunk information.
chunksSort:<string>
Sort the chunks by that field.
Enables/Disables colorful output.
context:<string>
Context directory for request shortening.
dependentModules:<boolean>
Show chunk modules that are dependencies of other modules of the chunk.
depth:<boolean>
Add module depth in module graph.
entrypoints:<boolean>
Display the entry points with the corresponding bundles.
Add --env information.
errorCause:<boolean>
Add cause to errors.
errorDetails:<boolean>
Add details to errors (like resolving log).
errorErrors:<boolean>
Add nested errors to errors (like in AggregateError).
errors:<boolean>
Add errors.
errorsCount:<boolean>
Add errors count.
errorsSpace:<number>
Space to display errors (value is in number of lines).
errorStack:<boolean>
Add internal stack trace to errors.
Please use excludeModules instead.
excludeAssets:<string> | <RegExp> | <object>
Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions.
excludeModules:<string> | <boolean> | <RegExp> | <object>
Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions.
groupAssetsByChunk:<boolean>
Group assets by how their are related to chunks.
groupAssetsByEmitStatus:<boolean>
Group assets by their status (emitted, compared for emit or cached).
groupAssetsByExtension:<boolean>
Group assets by their extension.
groupAssetsByInfo:<boolean>
Group assets by their asset info (immutable, development, hotModuleReplacement, etc).
groupAssetsByPath:<boolean>
Group assets by their path.
groupModulesByAttributes:<boolean>
Group modules by their attributes (errors, warnings, assets, optional, orphan, or dependent).
groupModulesByCacheStatus:<boolean>
Group modules by their status (cached or built and cacheable).
groupModulesByExtension:<boolean>
Group modules by their extension.
groupModulesByLayer:<boolean>
Group modules by their layer.
groupModulesByPath:<boolean>
Group modules by their path.
groupModulesByType:<boolean>
Group modules by their type.
groupReasonsByOrigin:<boolean>
Group reasons by their origin module.
Add the hash of the compilation.
Add ids.
logging:<boolean>
Add logging output.
loggingDebug:<string> | <boolean> | <RegExp> | <object>
Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions.
loggingTrace:<boolean>
Add stack traces to logging output.
moduleAssets:<boolean>
Add information about assets inside modules.
modules:<boolean>
Add built modules information.
modulesSort:<string>
Sort the modules by that field.
modulesSpace:<number>
Space to display modules (groups will be collapsed to fit this space, value is in number of modules/groups).
moduleTrace:<boolean>
Add dependencies and origin of warnings/errors.
nestedModules:<boolean>
Add information about modules nested in other modules (like with module concatenation).
nestedModulesSpace:<number>
Space to display modules nested within other modules (groups will be collapsed to fit this space, value is in number of modules/group).
optimizationBailout:<boolean>
Show reasons why optimization bailed out for modules.
orphanModules:<boolean>
Add information about orphan modules.
outputPath:<boolean>
Add output path information.
performance:<boolean>
Add performance hint flags.
Preset for the default values.
providedExports:<boolean>
Show exports provided by modules.
publicPath:<boolean>
Add public path information.
reasons:<boolean>
Add information about the reasons why modules are included.
reasonsSpace:<number>
Space to display reasons (groups will be collapsed to fit this space).
relatedAssets:<boolean>
Add information about assets that are related to other assets (like SourceMaps for assets).
runtime:<boolean>
Add information about runtime modules (deprecated: use 'runtimeModules' instead).
runtimeModules:<boolean>
Add information about runtime modules.
source:<boolean>
Add the source code of modules.
timings:<boolean>
Add timing information.
usedExports:<boolean>
Show exports used by modules.
version:<boolean>
Add webpack version information.
warnings:<boolean>
Add warnings.
warningsCount:<boolean>
Add warnings count.
warningsFilter:<string> | <RegExp> | <object>
Suppress listing warnings that match the specified filters (they will still be counted). Filters can be Strings, RegExps or Functions.
warningsSpace:<number>
Space to display warnings (value is in number of lines).

Type:
{KnownStatsAsset|Record<string, any>}

Type:
{KnownStatsChunk|Record<string, any>}

Type:
{KnownStatsChunkGroup|Record<string, any>}

Type:
{KnownStatsChunkOrigin|Record<string, any>}

Type:
{KnownStatsCompilation|Record<string, any>}

Type:
{KnownStatsError|Record<string, any>}

Type:
{KnownStatsLogging|Record<string, any>}

Type:
{KnownStatsLoggingEntry|Record<string, any>}

Type:
{KnownStatsModule|Record<string, any>}

Type:
{KnownStatsModuleIssuer|Record<string, any>}

Type:
{KnownStatsModuleReason|Record<string, any>}

Type:
{KnownStatsModuleTraceDependency|Record<string, any>}

Type:
{KnownStatsModuleTraceItem|Record<string, any>}

Type:
{KnownStatsProfile|Record<string, any>}