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

not converting images to webp on macbook air 13 #46

Open
shahriyor-sharifjonov opened this issue Nov 25, 2022 · 0 comments
Open

not converting images to webp on macbook air 13 #46

shahriyor-sharifjonov opened this issue Nov 25, 2022 · 0 comments

Comments

@shahriyor-sharifjonov
Copy link

i have gulp project that worked on windows 10. now i'm using macbook and gulp-webp not converting images to webp. any solutions?

source code: https://github.com/shahriyor-sharifjonov/gulp-2023

image code:

import webp from "gulp-webp"
import imagemin from "gulp-imagemin";

export const images = () => { 
    return app.gulp.src(app.path.src.images)
        .pipe(app.plugins.plumber(
            app.plugins.notify.onError({
                title: "IMAGES",
                message: "Error: <%= error.message %>"
            })
        ))
        .pipe(app.plugins.newer(app.path.build.images))
        .pipe(webp())
        .pipe(app.gulp.dest(app.path.build.images))
        .pipe(app.gulp.src(app.path.src.images))
        .pipe(app.plugins.newer(app.path.build.images))
        .pipe(imagemin({
            progressive: true,
            svgoPlugins: [{ removeViewBox: false }],
            interlaced: true,
            optimizationLevel: 3 // 0 to 7
        }))
        .pipe(app.gulp.dest(app.path.build.images))
        .pipe(app.plugins.browsersync.stream());
}
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