diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 7dbf78e..b0fa8d3 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -30,6 +30,9 @@ export default defineConfig(({ mode }) => ({ }, plugins: [react(), mode === "development" && componentTagger()].filter(Boolean), build: { + // Fonts stay separate files: the sidecar and Tauri CSPs allow fonts from + // 'self' only, so a small subset inlined as a data: URL would be blocked. + assetsInlineLimit: (filePath: string) => (/\.(?:woff2?|ttf|otf)$/.test(filePath) ? false : undefined), rollupOptions: { output: { // Split the heaviest independent vendor libraries out of the single