imagemin
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -61,3 +61,5 @@ 'use strict'; | ||
return opts.plugins.length > 0 ? promisePipe(opts.plugins)(input) : Promise.resolve(input); | ||
const pipe = opts.plugins.length > 0 ? promisePipe(opts.plugins)(input) : Promise.resolve(input); | ||
return pipe.then(buf => buf.length < input.length ? buf : input); | ||
}; |
{ | ||
"name": "imagemin", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Minify images", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
5691
51