On this page

Stats options object.

Type:boolean

Fallback value for stats options when an option is not defined (has precedence over local webpack defaults).

Type:boolean

Add assets information.

Type:string | false

Sort the assets by that field.

Type:number

Space to display assets (groups will be collapsed to fit this space).

Type:boolean

Add built at time information.

Stability: 0Deprecated
Type:boolean

Add information about cached (not built) modules (deprecated: use 'cachedModules' instead).

Type:boolean

Show cached assets (setting this to false only shows emitted files).

Type:boolean

Add information about cached (not built) modules.

Type:boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptions | StatsValue[]

Add children information.

Type:boolean

Display auxiliary assets in chunk groups.

Type:boolean

Display children of chunk groups.

Type:number

Limit of assets displayed in chunk groups.

Type:boolean

Include 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.

Type:boolean

Display all chunk groups with the corresponding bundles.

Type:boolean

Add built modules information to chunk information.

Type:number

Space to display chunk modules (groups will be collapsed to fit this space, value is in number of modules/group).

Type:boolean

Add the origins of chunks and chunk merging info.

Type:boolean

Add information about parent, children and sibling chunks to chunk information.

Type:boolean

Add chunk information.

Type:string | false

Sort the chunks by that field.

Enables/Disables colorful output.

Type:string

Custom color for bold text.

Type:string

Custom color for cyan text.

Type:string

Custom color for green text.

Type:string

Custom color for magenta text.

Type:string

Custom color for red text.

Type:string

Custom color for yellow text.

Type:string

Context directory for request shortening.

Type:boolean

Show chunk modules that are dependencies of other modules of the chunk.

Type:boolean

Add module depth in module graph.

Type:boolean | "auto"

Display the entry points with the corresponding bundles.

Type:boolean

Add --env information.

Type:boolean | "auto"

Add cause to errors.

Type:boolean | "auto"

Add details to errors (like resolving log).

Type:boolean | "auto"

Add nested errors to errors (like in AggregateError).

Type:boolean

Add errors.

Type:boolean

Add errors count.

Type:number

Space to display errors (value is in number of lines).

Type:boolean

Add internal stack trace to errors.

Type:string | boolean | RegExp | ModuleFilterItemTypes[] | ((name: string, module: StatsModule, type: "module" | "chunk" | "root-of-chunk" | "nested") => boolean)

Please use excludeModules instead.

Type:string | RegExp | AssetFilterItemTypes[] | ((name: string, asset: StatsAsset) => boolean)

Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions.

Type: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.

Type:boolean

Group assets by how their are related to chunks.

Type:boolean

Group assets by their status (emitted, compared for emit or cached).

Type:boolean

Group assets by their extension.

Type:boolean

Group assets by their asset info (immutable, development, hotModuleReplacement, etc).

Type:boolean

Group assets by their path.

Type:boolean

Group modules by their attributes (errors, warnings, assets, optional, orphan, or dependent).

Type:boolean

Group modules by their status (cached or built and cacheable).

Type:boolean

Group modules by their extension.

Type:boolean

Group modules by their layer.

Type:boolean

Group modules by their path.

Type:boolean

Group modules by their type.

Type:boolean

Group reasons by their origin module.

Type:boolean

Add the hash of the compilation.

Type:boolean

Add ids.

Type:boolean | "error" | "warn" | "info" | "log" | "none" | "verbose"

Add logging output.

Type:string | boolean | RegExp | FilterItemTypes[] | ((value: string) => boolean)

Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions.

Type:boolean

Add stack traces to logging output.

Type:boolean

Add information about assets inside modules.

Type:boolean

Add built modules information.

Type:string | false

Sort the modules by that field.

Type:number

Space to display modules (groups will be collapsed to fit this space, value is in number of modules/groups).

Type:boolean

Add dependencies and origin of warnings/errors.

Type:boolean

Add information about modules nested in other modules (like with module concatenation).

Type:number

Space to display modules nested within other modules (groups will be collapsed to fit this space, value is in number of modules/group).

Type:boolean

Show reasons why optimization bailed out for modules.

Type:boolean

Add information about orphan modules.

Type:boolean

Add output path information.

Type:boolean

Add performance hint flags.

Preset for the default values.

Type:boolean

Show exports provided by modules.

Type:boolean

Add public path information.

Type:boolean

Add information about the reasons why modules are included.

Type:number

Space to display reasons (groups will be collapsed to fit this space).

Type:boolean

Add information about assets that are related to other assets (like SourceMaps for assets).

Stability: 0Deprecated
Type:boolean

Add information about runtime modules (deprecated: use 'runtimeModules' instead).

Type:boolean

Add information about runtime modules.

Type:boolean

Add the source code of modules.

Type:boolean

Add timing information.

Type:boolean

Show exports used by modules.

Type:boolean

Add webpack version information.

Type:boolean

Add warnings.

Type:boolean

Add warnings count.

Type: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.

Type:number

Space to display warnings (value is in number of lines).