Skip to content

Commit

Permalink
feat: add build stats hash support (#6980)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe committed Feb 7, 2022
1 parent 0cbdf5f commit a2b6409
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/@vue/cli-service/lib/commands/build/formatStats.js
Expand Up @@ -68,5 +68,10 @@ module.exports = function formatStats (stats, dir, api) {
)).join(`\n`)
)

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

return `${ui.toString()}\n\n ${chalk.gray(`Images and other types of assets omitted.`)}\n ${info}\n`
}

0 comments on commit a2b6409

Please sign in to comment.