Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagemin not Optimazing images in Gupl v5 #415

Open
madjacky opened this issue Apr 12, 2024 · 0 comments
Open

Imagemin not Optimazing images in Gupl v5 #415

madjacky opened this issue Apr 12, 2024 · 0 comments

Comments

@madjacky
Copy link

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%)
@madjacky madjacky changed the title Imagemin nto Optimazing images in Gupl v5 Imagemin not Optimazing images in Gupl v5 Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant