gulp-mmtrix

0.1.10 • Public • Published

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

Package Sidebar

Install

npm i gulp-mmtrix

Weekly Downloads

0

Version

0.1.10

License

MIT

Last publish

Collaborators

  • yangblink