8000 Imagemin not Optimazing images in Gupl v5 · Issue #415 · imagemin/imagemin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Imagemin not Optimazing images in Gupl v5 #415
Open
@madjacky

Description

@madjacky

after updating gulp to version 5 whne i start gulp console show gulp-imagemin: Minified 1 image (saved 119 kB - 48.2%) but when i check image sizes in src & dist folders sizes are still same

const images = () => {
  return src([`${paths.imagesFolder.src}/**/**.{jpg,jpeg,png,svg}`], { encoding: false })
    .pipe(gulpif(isProd, imagemin([
      mozjpeg({
        quality: 60,
        progressive: true
      }),
      optipng({
        optimizationLevel: 2
      }),
    ])))
    .pipe(dest(paths.imagesFolder.dist))
}
gulp-imagemin: Minified 1 image (saved 119 kB - 48.2%)
< 3B58 /div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0