From 876fa7f3136129097ae3d04acff1dac87f2d2a90 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 28 Sep 2023 14:13:10 +0100 Subject: [PATCH] perf(vite): don't print server compressed size after vite build (#23359) --- packages/vite/src/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vite/src/server.ts b/packages/vite/src/server.ts index 03898ca7e3..2d7c9d0d3b 100644 --- a/packages/vite/src/server.ts +++ b/packages/vite/src/server.ts @@ -73,6 +73,8 @@ export async function buildServer (ctx: ViteBuildContext) { }, cacheDir: resolve(ctx.nuxt.options.rootDir, 'node_modules/.cache/vite', 'server'), build: { + // we'll display this in nitro build output + reportCompressedSize: false, sourcemap: ctx.nuxt.options.sourcemap.server ? ctx.config.build?.sourcemap ?? true : false, outDir: resolve(ctx.nuxt.options.buildDir, 'dist/server'), ssr: true,