From 501bdda16cc55139c86dde3f4b16fe7b36823934 Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Fri, 8 Sep 2023 11:48:35 +0200 Subject: [PATCH] Disable asset inlining (#1858) This ensures vite doesn't inline any assets. Inlining assets (like small fonts) causes CSP issues. --- vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.ts b/vite.config.ts index 294286ade0..3a29c65d1e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,6 +38,7 @@ export default defineConfig(({ mode }: UserConfig): UserConfig => { alias: aliasConfig, }, build: { + assetsInlineLimit: 0, outDir: "../../dist", emptyOutDir: true, rollupOptions: {