From 6d2ba636ad01efa56dac711157e3e80771f3413a Mon Sep 17 00:00:00 2001 From: Owen Date: Wed, 2 Sep 2026 23:00:03 +0200 Subject: [PATCH] inline css in prod --- src/routes/__root.tsx | 10 ++++++---- vite.config.ts | 5 +++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 0c993db..656de29 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -35,10 +35,12 @@ export const Route = createRootRoute({ }, ], links: [ - { - rel: "stylesheet", - href: appCss, - }, + // { + // rel: "stylesheet", + // href: appCss, + // }, + ...(import.meta.env.DEV ? [{ rel: "stylesheet", href: appCss }] : []), + { rel: "icon", href: "/favicon.svg", diff --git a/vite.config.ts b/vite.config.ts index 989cc24..c5c392d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,6 +20,11 @@ const config = defineConfig({ crawlLinks: true, failOnError: true, }, + server: { + build: { + inlineCss: true, + }, + }, pages: [ { path: "/callback",