Avoid destroying SVG fonts when optimizing images
This commit is contained in:
@@ -200,7 +200,7 @@ var ImageOptimizer = function() {
|
|||||||
} else if (type === 'png' && !lossy) {
|
} else if (type === 'png' && !lossy) {
|
||||||
engine = Imagemin.optipng({optimizationLevel: OPTIPNG_COMPRESSION_LEVEL});
|
engine = Imagemin.optipng({optimizationLevel: OPTIPNG_COMPRESSION_LEVEL});
|
||||||
} else if (type === 'svg' && !lossy) {
|
} else if (type === 'svg' && !lossy) {
|
||||||
engine = Imagemin.svgo();
|
engine = Imagemin.svgo({ plugins: [ { removeUselessDefs: false } ] });
|
||||||
} else {
|
} else {
|
||||||
deferred.reject('No optimization engine found for imagemin');
|
deferred.reject('No optimization engine found for imagemin');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user