new Stats(compilation): Stats
Attributes
compilation:
CompilationReturns:
StatsCreates an instance of Stats.
Source Code: lib/Stats.js#L20Type:
CompilationType:
numberType:
stringType:
numberstats.hasErrors(): boolean
Returns:
booleanChecks whether this stats has errors.
stats.hasWarnings(): boolean
Returns:
booleanChecks whether this stats has warnings.
stats.toJson(options?): StatsCompilation
Attributes
options:
boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptionsReturns:
StatsCompilationReturns json output.
stats.toString(options?): string
Attributes
options:
boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptionsReturns:
stringReturns a string representation.