0.1.10 • Published 8 years ago
gulp-mmtrix v0.1.10
gulp-mmtrix
Minify image use mmtrix
Install
npm install --save-dev gulp-mmtrix
Example
var gulp = require('gulp');
var mmtrix = require('gulp-mmtrix');
gulp.task('mmtrix', function() {
var opt = {
accesskey: accesskey-from-mmtrix,
securekey: securekey-from-mmtrix,
}
gulp.src('your/minify/img/**')
.pipe(mmtrix(opt, function(data){
console.log(data)
}))
.pipe(gulp.dest('/imagemin/'))
})
It will minify all you img to /imagemin
accesskey
and securekey
is generate by mmtrix
data
is the response from mmtrix