gulp-webp

Convert images to WebP

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-webp
20744.0.14 years ago9 years agoMinified + gzip package size for gulp-webp in KB

Readme

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