Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 471 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 471 Bytes

gulp-pngquant

pngquant plugin

Installation

$ npm install gulp-pngquant

Usage

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

gulp.task('compress', function() {
    gulp.src('./images/*.png')
        .pipe(gulpPngquant({
            quality: '65-80'
        }))
        .pipe(gulp.dest('./compressed/'));
});

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

License

MIT © leidottw