On this page

new Stats(compilation): void
  • compilation {Compilation} webpack compilation
  • Returns: {Stats}
webpack.Stats.hasErrors(): boolean
Returns:<boolean>
true if the compilation encountered an error

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

webpack.Stats.toJson(options?): StatsCompilation
Attributes
options:<boolean>
stats options
Returns:
{StatsCompilation} json output

webpack.Stats.toString(options?): string
Attributes
options:<boolean>
stats options
Returns:<string>
string output