new Stats(compilation): StatsAttributes
compilation:
Compilationwebpack compilation
Returns:
StatsCreates an instance of Stats.
Attributes
hasErrors(): booleanReturns:
booleantrue if the compilation encountered an error
Checks whether this stats has errors.
hasWarnings(): booleanReturns:
booleantrue if the compilation had a warning
Checks whether this stats has warnings.
toJson(options?): StatsCompilationAttributes
options:
boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptionsstats options
Returns:
StatsCompilationjson output
Returns json output.
toString(options?): stringAttributes
options:
boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptionsstats options
Returns:
stringstring output
Returns a string representation.