mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
refactor(vite): show log when client build is starting (#9759)
This commit is contained in:
parent
ef4b667ba0
commit
30c4a599d2
@ -149,9 +149,10 @@ export async function buildClient (ctx: ViteBuildContext) {
|
||||
})
|
||||
} else {
|
||||
// Build
|
||||
logger.info('Building client...')
|
||||
const start = Date.now()
|
||||
await vite.build(clientConfig)
|
||||
await ctx.nuxt.callHook('vite:compiled')
|
||||
logger.info(`Client built in ${Date.now() - start}ms`)
|
||||
logger.success(`Client built in ${Date.now() - start}ms`)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user