Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

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

1,351

version

4.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability