gulp-cwebp

Convert JPG and PNG images to WebP with gulp task.

Downloads
2.8K
Stars
6
Committers
3

gulp-cwebp GitHub Actions Status

Convert JPG and PNG images to WebP with gulp task.

Install

$ npm install --save-dev gulp-cwebp

Usage

This is gulpfile.js sample.

const gulp  = require('gulp');
const cwebp = require('gulp-cwebp');

gulp.task('cwebp', function () {
  gulp.src('./fixtures/*')
    .pipe(cwebp())
    .pipe(gulp.dest('./dest/'));
});

gulp.task('default', ['cwebp']);

License

MIT © Shogo Sensui

Package Rankings
Top 6.42% on Npmjs.org