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.