gulp-webp

5.0.0 • Public • Published

gulp-webp

Convert images to WebP

Supports PNG, JPEG, TIFF, WebP.

Install

npm install --save-dev gulp-webp

Usage

import gulp from 'gulp';
import webp from 'gulp-webp';

export default () => (
	gulp.src('src/image.jpg')
		.pipe(webp())
		.pipe(gulp.dest('dist'))
);

API

webp(options?)

See the imagemin-webp options.

Unsupported files are ignored and passed through.

Package Sidebar

Install

npm i gulp-webp

Weekly Downloads

4,880

Version

5.0.0

License

MIT

Unpacked Size

3.08 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus