Asset compression

This commit is contained in:
2025-12-03 11:16:33 +01:00
parent 9e05868b4a
commit e3c437c027

View File

@@ -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;