Nanoprogrammed Penultimate Musicianship
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

gulp-webp

3.0.0 • 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,663

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability