1.0.5 • Published 4 years ago

gulp-pngquant-cache v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

gulp-pngquant-cache

A pngquant gulp plugin with cache.

Inspired & Based on : gulp-pngquant & gulp-tinypng-unlimited

Installation

$ npm install gulp-pngquant-cache

Usage

const gulp = require('gulp');
const gulpPngquant = require('gulp-pngquant-cache');

gulp.task('compress', function() {
    gulp.src('./images/*.png')
        .pipe(gulpPngquant({
            quality: '65-80',
            cache: true,
            cachePath: path.join(__dirname, '_cache/')
        }))
        .pipe(gulp.dest('./compressed/'));
});

gulp.task('default', ['compress']);

License

MIT © finscn