0.0.2 • Published 10 years ago

yc-uglify-js v0.0.2

Weekly downloads
6
License
BSD-2-Clause
Repository
github
Last release
10 years ago

yc-uglify-js

custom uglify use uglifyJs

npm install yc-uglify-js -g

how to use uglify

var UglifyJS = require("uglify-js");
plan1
UglifyJS.minify("/path/to/file.js").code;
plan2
UglifyJS.minify("var b = function () {};", {fromString: true});
plan3
var result = UglifyJS.minify([ "file1.js", "file2.js", "file3.js" ], {
    outSourceMap: "out.js.map"
});
console.log(result.code); // minified output
console.log(result.map);
more info

uglify-js

0.0.2

10 years ago

0.0.1

10 years ago