maximgavrilov / gulp-webp

Convert images to WebP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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');

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

API

webp(options?)

See the imagemin-webp options.

Note that unsupported files are ignored.

About

Convert images to WebP

License:MIT License


Languages

Language:JavaScript 100.0%