diff --git a/index.js b/index.js index f28e850..69e5f19 100644 --- a/index.js +++ b/index.js @@ -69,7 +69,7 @@ function gulpPrefixer(prefixText) { tinypng(file, function(data) { file.contents = data; this.push(file); - gutil.log('gulp-tingpng: ', gutil.colors.green('✔ ') + file.relative + ' (saved ' + + gutil.log('gulp-tinypng: ', gutil.colors.green('✔ ') + file.relative + ' (saved ' + prettyBytes(prevLength - data.length) + ' - ' + ((1 - data.length / prevLength) * 100).toFixed(0) + '%)'); return callback(); }.bind(this)); @@ -123,4 +123,4 @@ function tinypng(file, cb) { }); }; // Exporting the plugin main function -module.exports = gulpPrefixer; \ No newline at end of file +module.exports = gulpPrefixer;