Gulp plugin for optimize PNG.
Required: pngquant
$ brew install pngquant
$ npm install gulp-pngmin --save-dev
$ yum install pngquant
$ npm install gulp-pngmin --save-dev
var gulp = require('gulp');
var pngmin = require('gulp-pngmin');
// Basic usage
gulp.task('pngmin', function() {
gulp.src('src/images/**/*.png')
.pipe(pngmin())
.pipe(gulp.dest('dist/images'));
});
var gulp = require('gulp');
var pngmin = require('gulp-pngmin');
gulp.task('pngmin', function() {
gulp.src('src/images/**/*.png')
.pipe(pngmin([192]))
.pipe(gulp.dest('dist/images'));
});
Copyright (c) 2014 Yusuke Narita Licensed under the MIT license.