Skip to content

Commit 795a8ed

Browse files
yeskunallConnor Clark
authored andcommitted
Add built at time to webpack output
1 parent b8815a9 commit 795a8ed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎lib/Stats.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ class Stats {
252252
if(showHash) obj.hash = this.hash;
253253
if(showTimings && this.startTime && this.endTime) {
254254
obj.time = this.endTime - this.startTime;
255+
obj.builtAt = this.endTime;
255256
}
256257

257258
if(showEnv && options._env) {
@@ -611,6 +612,9 @@ class Stats {
611612
newline();
612613
}
613614
if(typeof obj.time === "number") {
615+
colors.normal("Built at: ");
616+
colors.bold(new Date(obj.builtAt));
617+
newline();
614618
colors.normal("Time: ");
615619
colors.bold(obj.time);
616620
colors.normal("ms");

0 commit comments

Comments
 (0)