add optional builtAt key to webpack.Configuration.stats

This commit is contained in:
g-harel 2018-06-15 14:41:31 -04:00
parent efbde64a55
commit ace3a02a39
2 changed files with 3 additions and 0 deletions

View File

@ -1132,6 +1132,8 @@ declare namespace webpack {
assets?: boolean;
/** Sort assets by a field */
assetsSort?: string;
/** Add built at time information */
builtAt?: boolean;
/** Add information about cached (not built) modules */
cached?: boolean;
/** Show cached assets (setting this to `false` only shows emitted files) */

View File

@ -383,6 +383,7 @@ webpack({
const jsonStatsWithAllOptions = stats.toJson({
assets: true,
assetsSort: "field",
builtAt: true,
cached: true,
children: true,
chunks: true,