diff --git a/packages/astro/src/core/build/vite-plugin-css.ts b/packages/astro/src/core/build/vite-plugin-css.ts index 04403aed5..50c0dba75 100644 --- a/packages/astro/src/core/build/vite-plugin-css.ts +++ b/packages/astro/src/core/build/vite-plugin-css.ts @@ -239,7 +239,7 @@ export function rollupPluginAstroBuildCSS(options: PluginOptions): VitePlugin[] if (output.type === 'asset') { if (output.name?.endsWith('.css') && typeof output.source === 'string') { const cssTarget = settings.config.vite.build?.cssTarget; - const minify = settings.config.vite.build?.minify !== false + const minify = settings.config.vite.build?.minify !== false; const { code: minifiedCSS } = await esbuild.transform(output.source, { loader: 'css', minify,