Convert images to WebP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
fixture-corrupt.webp
fixture.jpg
index.js
license
package.json
readme.md
test.js

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