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

+6-1
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)