On this page

Source Code: lib/Stats.js#L13
new Stats(compilation): Stats
Source Code: lib/Stats.js#L18
Attributes
compilation:Compilation
Returns:Stats

Creates an instance of Stats.

Source Code: lib/Stats.js#L20
Source Code: lib/Stats.js#L31
Type:number
Source Code: lib/Stats.js#L23
Type:string
Source Code: lib/Stats.js#L27
Type:number
stats.hasErrors(): boolean
Source Code: lib/Stats.js#L50
Returns:boolean

Checks whether this stats has errors.

stats.hasWarnings(): boolean
Source Code: lib/Stats.js#L39
Returns:boolean

Checks whether this stats has warnings.

stats.toJson(options?): StatsCompilation
Source Code: lib/Stats.js#L62
Attributes
options:boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptions

Returns json output.

stats.toString(options?): string
Source Code: lib/Stats.js#L79
Attributes
options:boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptions
Returns:string

Returns a string representation.