mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-27 01:28:56 -06:00
feat: add build stats hash support (#6980)
This commit is contained in:
@@ -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`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user