gulp-webp

4.0.1 • Public • Published

gulp-webp Build Status

Convert images to WebP

Supports PNG, JPEG, TIFF, WebP.

Install

$ npm install --save-dev gulp-webp

Usage

const gulp = require('gulp');
const webp = require('gulp-webp');
 
gulp.task('default', () =>
    gulp.src('src/image.jpg')
        .pipe(webp())
        .pipe(gulp.dest('dist'))
);

API

Note that unsupported files are ignored.

webp([options])

See the imagemin-webp options.

License

MIT © Sindre Sorhus

Install

npm i gulp-webp

DownloadsWeekly Downloads

5,050

Version

4.0.1

License

MIT

Unpacked Size

3.53 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus