Avoid destroying SVG fonts when optimizing images

This commit is contained in:
Gaël Métais
2015-08-16 14:23:37 +02:00
parent 8325a9297e
commit 6bd55e4807
+1 -1
View File
@@ -200,7 +200,7 @@ var ImageOptimizer = function() {
} else if (type === 'png' && !lossy) {
engine = Imagemin.optipng({optimizationLevel: OPTIPNG_COMPRESSION_LEVEL});
} else if (type === 'svg' && !lossy) {
engine = Imagemin.svgo();
engine = Imagemin.svgo({ plugins: [ { removeUselessDefs: false } ] });
} else {
deferred.reject('No optimization engine found for imagemin');
}