sindresorhus / gulp-imagemin

Minify PNG, JPEG, GIF and SVG images
MIT License
1.9k stars 156 forks source link

Getting Minified 0 images out of nowhere #311

Closed Xeevis closed 6 years ago

Xeevis commented 6 years ago

Hello. I'm getting plenty of these annoying log messages and I can't figure out why. Everything otherwise works.

image

function copyFilesPipeline(assetGroup) {
  return gulp.src(assetGroup.inputPaths)
    .pipe(gulpif('**/*.{gif,jpg,png}', print()))
    //.pipe(gulpif('**/*.{gif,jpg,png}', imagemin({ verbose: true })))
    .pipe(gulp.dest(assetGroup.outputDir));
}

If I try to print out files with gulp-print I get correct set of files and they do all get minified image

So where is "Minified 0 images" coming from? Do I need to trim the glob or something? Thanks.