Convert images to WebP
JavaScript
Latest commit 6ee7219 Apr 8, 2016 @sindresorhus minor tweaks
Permalink
Failed to load latest commit information.
.editorconfig minor tweaks Apr 8, 2016
.gitattributes init Jan 1, 2014
.gitignore init Jan 1, 2014
.travis.yml minor tweaks Apr 8, 2016
fixture-corrupt.webp Close #12 PR: rewrite this plugin as an imagemin-webp wrapper. Apr 26, 2015
fixture.jpg init Jan 1, 2014
index.js minor tweaks Apr 8, 2016
license tweaks Aug 14, 2014
package.json minor tweaks Apr 8, 2016
readme.md minor tweaks Apr 8, 2016
test.js minor tweaks Apr 8, 2016

readme.md

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