1000ch / gulp-cwebp

Convert JPG and PNG images to WebP with gulp task.

Home Page:https://www.npmjs.org/package/gulp-cwebp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Convert JPG and PNG images to WebP with gulp task.

https://www.npmjs.org/package/gulp-cwebp


Languages

Language:JavaScript 100.0%