gulp-pngquant-native
v0.1.0
Published
pngquant pipeline for minify image using node-pngquant-native
Downloads
2
Readme
pngquant pipeline for minify image using node-pngquant-native
Useage
var gulp = require('gulp');
var pngquant = require('gulp-pngquant-native');
// Basic usage
gulp.task('image', function() {
return gulp.src('src/images/**/*.png')
.pipe(pngquant({/**options**/}))
});
BufferMode
var fs = require('fs');
var pngquant = require('gulp-pngquant-native');
fs.createReadStream('src/images/xxx.png')
.pipe(pngquant.buffer(/**options**/))
.on("data",data=>console.log('data'))