Add Gzip offenders
This commit is contained in:
@@ -121,7 +121,7 @@ var FileMinifier = function() {
|
||||
});
|
||||
|
||||
} else {
|
||||
debug('File type %s is not an (optimizable) image', entry.contentType);
|
||||
debug('Not minfiable type or already minified');
|
||||
deferred.resolve(entry);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ var GzipCompressor = function() {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
deferred.resolve(entry);
|
||||
}
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ var ImageOptimizer = function() {
|
||||
});
|
||||
|
||||
} else {
|
||||
debug('File type %s is not an (optimizable) image', entry.contentType);
|
||||
debug('File type %s is not an optimizable image', entry.contentType);
|
||||
deferred.resolve(entry);
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ var ImageOptimizer = function() {
|
||||
}
|
||||
|
||||
function isSVG(entry) {
|
||||
return entry.isImage && entry.contentType === 'image/svg+xml';
|
||||
return entry.isImage && entry.isSVG;
|
||||
}
|
||||
|
||||
function compressJpegLosslessly(imageBody) {
|
||||
|
||||
Reference in New Issue
Block a user