perf(vite): don't print server compressed size after vite build (#23359)

This commit is contained in:
Daniel Roe 2023-09-28 14:13:10 +01:00 committed by GitHub
parent a06d5247ca
commit 876fa7f313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,