Set archiver zlib level to 1

pull/66/head
Piero Toffanin 2018-12-27 23:23:09 -05:00
rodzic 82ecef4d6a
commit 133994bb91
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -225,7 +225,9 @@ module.exports = class Task{
this.output.push(`Compressing ${outputFilename}\n`);
let output = fs.createWriteStream(this.getAssetsArchivePath(outputFilename));
let archive = archiver.create('zip', {});
let archive = archiver.create('zip', {
zlib: { level: 1 } // Sets the compression level (1 = best speed since most assets are already compressed)
});
archive.on('finish', () => {
// TODO: is this being fired twice?