From e7e70d8fa812e63e4b5699722a97779d84b39fe2 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 8 Aug 2023 18:11:02 +0200 Subject: [PATCH] frontend: disable CSS code splitting --- crates/templates/Cargo.toml | 2 +- frontend/vite.config.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/templates/Cargo.toml b/crates/templates/Cargo.toml index 153c76e7..5afee12e 100644 --- a/crates/templates/Cargo.toml +++ b/crates/templates/Cargo.toml @@ -7,7 +7,7 @@ license = "Apache-2.0" [dependencies] tracing = "0.1.37" -tokio = { version = "1.29.1", features = ["macros", "rt"] } +tokio = { version = "1.29.1", features = ["macros", "rt", "fs"] } anyhow = "1.0.72" thiserror = "1.0.44" diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 54cfb6e7..769d1470 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -36,6 +36,8 @@ export default defineConfig((env) => ({ assetsInlineLimit: 0, sourcemap: true, modulePreload: false, + // We don't handle CSS code splitting well yet, so we disable it for now + cssCodeSplit: false, rollupOptions: { input: [