|
@@ -58,7 +58,7 @@ var GzipCompressor = function() {
|
|
|
|
|
|
var uncompressedSize = entry.weightCheck.optimized;
|
|
var uncompressedSize = entry.weightCheck.optimized;
|
|
|
|
|
|
- zlib.gzip(new Buffer(entry.weightCheck.bodyAfterOptimization, 'utf8'), function(err, buffer) {
|
|
|
|
|
|
+ zlib.gzip(Buffer.from(entry.weightCheck.bodyAfterOptimization, 'utf8'), function(err, buffer) {
|
|
if (err) {
|
|
if (err) {
|
|
debug('Could not compress minified file with gzip');
|
|
debug('Could not compress minified file with gzip');
|
|
debug(err);
|
|
debug(err);
|