On this page

new Stats(compilation): Stats
Attributes
compilation:<Compilation>
Returns:<Stats>

Creates an instance of Stats.

Attributes
compilation:<Compilation>
endTime:<number>
startTime:<number>
hasErrors(): boolean
Returns:<boolean>

Checks whether this stats has errors.


hasWarnings(): boolean
Returns:<boolean>

Checks whether this stats has warnings.


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

Returns json output.


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

Returns a string representation.