1.0.0-alpha.4 • Published 6 months ago
@hidoo/gulp-plugin-webp v1.0.0-alpha.4
@hidoo/gulp-plugin-webp
Plugin that generate webp for gulp.
Installation
$ npm install --save-dev gulp@next @hidoo/gulp-plugin-webpUsage
import { src, dest, task } from 'gulp';
import webp from '@hidoo/gulp-plugin-webp';
task('webp', () =>
src('/path/to/src').pipe(webp()).pipe(dest('/path/to/dest'))
);API
webp
return webp.
Parameters
optionsObject option (optional, default{})
Examples
import { src, dest, task } from 'gulp';
import webp from '@hidoo/gulp-plugin-webp';
task('webp', () =>
src('/path/to/src')
.pipe(
webp({
// this plugin options
append: false,
keepExtname: false,
verbose: true,
// specify imagemin-webp options
quality: 100
})
)
.pipe(dest('/path/to/dest'))
);Returns DestroyableTransform
Test
$ pnpm testLicense
MIT
1.0.0-alpha.4
6 months ago
1.0.0-alpha.3
6 months ago
1.0.0-alpha.2
7 months ago
1.0.0-alpha.1
2 years ago
1.0.0-alpha.0
2 years ago
0.19.0
4 years ago
0.18.0
5 years ago
0.17.0
5 years ago