using different compression method for zip
This commit is contained in:
@@ -1492,7 +1492,7 @@
|
|||||||
exportStatusText.textContent = 'Generating ZIP file...';
|
exportStatusText.textContent = 'Generating ZIP file...';
|
||||||
const content = await new Promise((resolve, reject) => {
|
const content = await new Promise((resolve, reject) => {
|
||||||
const chunks = [];
|
const chunks = [];
|
||||||
zip.generateInternalStream({ type: 'uint8array', streamFiles: true })
|
zip.generateInternalStream({ type: 'uint8array', compression: 'DEFLATE', compressionOptions: { level: 6 } })
|
||||||
.on('data', (chunk) => chunks.push(chunk))
|
.on('data', (chunk) => chunks.push(chunk))
|
||||||
.on('error', reject)
|
.on('error', reject)
|
||||||
.on('end', () => {
|
.on('end', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user