gulp-mmtrix
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -55,3 +55,7 @@ var through = require('through2'); | ||
mmtrix(reqOpt, file, ((data, responseJson) => { | ||
mmtrix(reqOpt, file, ((e, data, responseJson) => { | ||
if(e) { | ||
return callback(e); | ||
} | ||
gutil.log(PLUGIN_NAME + ': [compressing]', gutil.colors.green('✔ ') + file.relative + gutil.colors.gray(' (done)')); | ||
@@ -92,3 +96,3 @@ file.contents = data; | ||
download(minurl, filename, (buf) => { | ||
cb(buf, body); | ||
cb(null, buf, body); | ||
}); | ||
@@ -98,2 +102,3 @@ } | ||
gutil.log(PLUGIN_NAME + ':[compressing] failed', gutil.colors.red('☓ '), file.relative, gutil.colors.red( body.errorMsg)) | ||
cb(body.errorMsg) | ||
} | ||
@@ -100,0 +105,0 @@ } |
{ | ||
"name": "gulp-mmtrix", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "a gulp plugin for mmtrix who used to compress image", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5149
95