new Stats(compilation): Stats
Attributes
compilation:
Compilationwebpack compilation
Returns:
StatsCreates an instance of Stats.
Attributes
hasErrors(): boolean
Returns:
booleantrue if the compilation encountered an error
Checks whether this stats has errors.
hasWarnings(): boolean
Returns:
booleantrue 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" | StatsOptionsstats options
Returns:
StatsCompilationjson output
Returns json output.
toString(options?): string
Attributes
options:
boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptionsstats options
Returns:
stringstring output
Returns a string representation.