mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +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 {
|
} else {
|
||||||
// Build
|
// Build
|
||||||
|
logger.info('Building client...')
|
||||||
const start = Date.now()
|
const start = Date.now()
|
||||||
await vite.build(clientConfig)
|
await vite.build(clientConfig)
|
||||||
await ctx.nuxt.callHook('vite:compiled')
|
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