Stats options object.
booleanFallback value for stats options when an option is not defined (has precedence over local webpack defaults).
booleanAdd assets information.
string | falseSort the assets by that field.
numberSpace to display assets (groups will be collapsed to fit this space).
booleanAdd built at time information.
booleanAdd information about cached (not built) modules (deprecated: use 'cachedModules' instead).
booleanShow cached assets (setting this to false only shows emitted files).
booleanAdd information about cached (not built) modules.
boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptions | StatsValue[]Add children information.
booleanDisplay auxiliary assets in chunk groups.
booleanDisplay children of chunk groups.
numberLimit of assets displayed in chunk groups.
booleanInclude the resolved <link> resource-hint descriptors for each entrypoint (entrypoints[name].resourceHints). Combines output.resourceHints.chunks (initial-graph modulepreload/preload/prefetch) with output.resourceHints.assets (URL-referenced fonts / images / …). Lets SSR frameworks inject the hints server-side without walking the chunk graph themselves; the analogue of Vite's build.ssrManifest.
booleanDisplay all chunk groups with the corresponding bundles.
booleanAdd built modules information to chunk information.
numberSpace to display chunk modules (groups will be collapsed to fit this space, value is in number of modules/group).
booleanAdd the origins of chunks and chunk merging info.
booleanAdd information about parent, children and sibling chunks to chunk information.
booleanAdd chunk information.
string | falseSort the chunks by that field.
Enables/Disables colorful output.
stringCustom color for bold text.
stringCustom color for cyan text.
stringCustom color for green text.
stringCustom color for magenta text.
stringCustom color for red text.
stringCustom color for yellow text.
stringContext directory for request shortening.
booleanShow chunk modules that are dependencies of other modules of the chunk.
booleanAdd module depth in module graph.
boolean | "auto"Display the entry points with the corresponding bundles.
booleanAdd --env information.
boolean | "auto"Add cause to errors.
boolean | "auto"Add details to errors (like resolving log).
boolean | "auto"Add nested errors to errors (like in AggregateError).
booleanAdd errors.
booleanAdd errors count.
numberSpace to display errors (value is in number of lines).
booleanAdd internal stack trace to errors.
string | boolean | RegExp | ModuleFilterItemTypes[] | ((name: string, module: StatsModule, type: "module" | "chunk" | "root-of-chunk" | "nested") => boolean)Please use excludeModules instead.
string | RegExp | AssetFilterItemTypes[] | ((name: string, asset: StatsAsset) => boolean)Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions.
string | boolean | RegExp | ModuleFilterItemTypes[] | ((name: string, module: StatsModule, type: "module" | "chunk" | "root-of-chunk" | "nested") => boolean)Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions.
booleanGroup assets by how their are related to chunks.
booleanGroup assets by their status (emitted, compared for emit or cached).
booleanGroup assets by their extension.
booleanGroup assets by their asset info (immutable, development, hotModuleReplacement, etc).
booleanGroup assets by their path.
booleanGroup modules by their attributes (errors, warnings, assets, optional, orphan, or dependent).
booleanGroup modules by their status (cached or built and cacheable).
booleanGroup modules by their extension.
booleanGroup modules by their layer.
booleanGroup modules by their path.
booleanGroup modules by their type.
booleanGroup reasons by their origin module.
booleanAdd the hash of the compilation.
booleanAdd ids.
boolean | "error" | "warn" | "info" | "log" | "none" | "verbose"Add logging output.
Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions.
booleanAdd stack traces to logging output.
booleanAdd information about assets inside modules.
booleanAdd built modules information.
string | falseSort the modules by that field.
numberSpace to display modules (groups will be collapsed to fit this space, value is in number of modules/groups).
booleanAdd dependencies and origin of warnings/errors.
booleanAdd information about modules nested in other modules (like with module concatenation).
numberSpace to display modules nested within other modules (groups will be collapsed to fit this space, value is in number of modules/group).
booleanShow reasons why optimization bailed out for modules.
booleanAdd information about orphan modules.
booleanAdd output path information.
booleanAdd performance hint flags.
Preset for the default values.
booleanShow exports provided by modules.
booleanAdd public path information.
booleanAdd information about the reasons why modules are included.
numberSpace to display reasons (groups will be collapsed to fit this space).
booleanAdd information about assets that are related to other assets (like SourceMaps for assets).
booleanAdd information about runtime modules (deprecated: use 'runtimeModules' instead).
booleanAdd information about runtime modules.
booleanAdd the source code of modules.
booleanAdd timing information.
booleanShow exports used by modules.
booleanAdd webpack version information.
booleanAdd warnings.
booleanAdd warnings count.
string | RegExp | WarningFilterItemTypes[] | ((warning: StatsError, warningString: string) => boolean)Suppress listing warnings that match the specified filters (they will still be counted). Filters can be Strings, RegExps or Functions.
numberSpace to display warnings (value is in number of lines).