gulp-uglify
Advanced tools
Comparing version 0.0.3 to 0.0.4
var es = require('event-stream'), | ||
uglify = require('uglify-js'); | ||
uglify = require('uglify-js'), | ||
clone = require('clone'); | ||
@@ -7,6 +8,4 @@ module.exports = function() { | ||
function minify(file, callback) { | ||
var newFile = { | ||
path: file.path, | ||
contents: new Buffer(uglify.minify(String(file.contents), {fromString: true}).code) | ||
}; | ||
var newFile = clone(file); | ||
newFile.contents = new Buffer(uglify.minify(String(file.contents), {fromString: true}).code); | ||
@@ -13,0 +12,0 @@ callback(null, newFile); |
{ | ||
"name": "gulp-uglify", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Minify files with UglifyJS.", | ||
@@ -13,3 +13,4 @@ "keywords": [ | ||
"event-stream": "~3.0.15", | ||
"uglify-js": "~2.3.6" | ||
"uglify-js": "~2.3.6", | ||
"clone": "~0.1.9" | ||
}, | ||
@@ -16,0 +17,0 @@ "main": "index.js", |
4151
3
60
+ Addedclone@~0.1.9
+ Addedclone@0.1.19(transitive)