On this page

new Stats(compilation): Stats
Attributes
compilation:Compilation
webpack compilation
Returns:Stats

Creates an instance of Stats.

Attributes
compilation:Compilation
endTime:number
hash:string
startTime:number
hasErrors(): boolean
Returns:boolean
true if the compilation encountered an error

Checks whether this stats has errors.


hasWarnings(): boolean
Returns:boolean
true if the compilation had a warning

Checks whether this stats has warnings.


toJson(options?): StatsCompilation
Attributes
options:boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptions
stats options
json output

Returns json output.


toString(options?): string
Attributes
options:boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptions
stats options
Returns:string
string output

Returns a string representation.