From c6de06f0174196545cb51964dc5148c071d0d7d0 Mon Sep 17 00:00:00 2001 From: Mieszko Makuch Date: Tue, 28 Jul 2026 21:25:59 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20esbuild=20css=20minifier=20=E2=80=94=20l?= =?UTF-8?q?ightningcss=20folds=20animation-timeline=20into=20the=20animati?= =?UTF-8?q?on=20shorthand=20(invalid),=20silently=20killing=20scroll-drive?= =?UTF-8?q?n=20effects=20in=20production?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro.config.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index bfae257..50ebe98 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -13,6 +13,13 @@ export default defineConfig({ prefetch: { prefetchAll: true }, server: { port: 4321, host: true }, vite: { + build: { + // Lightning CSS (the default minifier) illegally folds animation-timeline + // INTO the `animation` shorthand (`animation: ... view()`), which browsers + // reject — silently killing every scroll-driven effect in production. + // esbuild minifies without property merging. + cssMinify: 'esbuild', + }, server: { // Vite blocks unknown Host headers by default; the demo is viewed through an // ephemeral cloudflared quick tunnel, so allow any *.trycloudflare.com host.