Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/1000ch/gulp-cwebp

Convert JPG and PNG images to WebP with gulp task.
https://github.com/1000ch/gulp-cwebp

cwebp gulp image webp

Last synced: 2 months ago
JSON representation

Convert JPG and PNG images to WebP with gulp task.

Awesome Lists containing this project

README

        

# gulp-cwebp ![GitHub Actions Status](https://github.com/1000ch/gulp-cwebp/workflows/test/badge.svg?branch=main)

Convert JPG and PNG images to WebP with gulp task.

## Install

```sh
$ npm install --save-dev gulp-cwebp
```

## Usage

This is `gulpfile.js` sample.

```js
const gulp = require('gulp');
const cwebp = require('gulp-cwebp');

gulp.task('cwebp', function () {
gulp.src('./fixtures/*')
.pipe(cwebp())
.pipe(gulp.dest('./dest/'));
});

gulp.task('default', ['cwebp']);
```

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)