gulp-pngquant-cache
v1.0.5
Published
pngquant plugin
Downloads
5
Maintainers
Readme
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