Skip to content

sindresorhus/gulp-webp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

09aaf4c · Nov 1, 2023

History

39 Commits
Nov 1, 2023
Dec 31, 2017
Jan 6, 2019
Dec 31, 2017
Dec 31, 2017
Jan 6, 2019
Jan 1, 2014
Nov 1, 2023
Nov 1, 2023
Nov 1, 2023
Nov 1, 2023
Nov 1, 2023

Repository files navigation

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.