From 30c4a599d2c4eb9fa364ee2b107a3a91a73e46c9 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 16 Dec 2022 12:47:12 +0100 Subject: [PATCH] refactor(vite): show log when client build is starting (#9759) --- packages/vite/src/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/client.ts b/packages/vite/src/client.ts index fbfeaaecf7..7287e0e048 100644 --- a/packages/vite/src/client.ts +++ b/packages/vite/src/client.ts @@ -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`) } }