Asset compression
This commit is contained in:
@@ -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 url = URL.createObjectURL(blob);
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.href = url;
|
a.href = url;
|
||||||
|
|||||||
Reference in New Issue
Block a user