Skip to content

Commit a2b6409

Browse files
authored
feat: add build stats hash support (#6980)
1 parent 0cbdf5f commit a2b6409

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/@vue/cli-service/lib/commands/build/formatStats.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,10 @@ module.exports = function formatStats (stats, dir, api) {
6868
)).join(`\n`)
6969
)
7070

71-
return `${ui.toString()}\n\n ${chalk.gray(`Images and other types of assets omitted.`)}\n`
71+
const time = stats.endTime - stats.startTime
72+
const now = new Date().toISOString()
73+
const hash = stats.hash
74+
const info = `Build at: ${chalk.white(now)} - Hash: ${chalk.white(hash)} - Time: ${chalk.white(time)}ms`
75+
76+
return `${ui.toString()}\n\n ${chalk.gray(`Images and other types of assets omitted.`)}\n ${info}\n`
7277
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy