From e3c437c0275d8e5e185e646a9299eaa93d6aedb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Wed, 3 Dec 2025 11:16:33 +0100 Subject: [PATCH] Asset compression --- src/lib/io.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/io.ts b/src/lib/io.ts index 83b5975..990b127 100644 --- a/src/lib/io.ts +++ b/src/lib/io.ts @@ -26,9 +26,13 @@ export async function exportBoard(): Promise<{ success: boolean; error?: string } } - zip.file('manifest.json', JSON.stringify(exportManifest, null, 2)); + zip.file('manifest.json', JSON.stringify(exportManifest)); - const blob = await zip.generateAsync({ type: 'blob' }); + const blob = await zip.generateAsync({ + type: 'blob', + compression: 'DEFLATE', + compressionOptions: { level: 9 } + }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url;