On this page

new Stats(compilation): Stats
Attributes
compilation:<Compilation>
webpack compilation
Returns:<Stats>
Attributes
compilation:<Compilation>
endTime:<number>
startTime:<number>
hasErrors(): boolean
Returns:<boolean>
true if the compilation encountered an error

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

toJson(options?): StatsCompilation
Attributes
stats options
json output

toString(options?): string
Attributes
stats options
Returns:<string>
string output