0.1.0 • Published 9 years ago
justo-plugin-uglifyjs v0.1.0
Plugin for UglifyJS.
Proudly made with ♥ in Valencia, Spain, EU.
Install
justo install justo-plugin-uglifyjsUse
const uglifyjs = require("justo-plugin-uglifyjs");To run uglifyjs, the task must be called as follows:
uglifyjs(jsOpts, opts)The opts parameter:
src(string or string[]). The files to minify.dst(string). The output file.preamble(string). Preamble to prepend to the output.output(boolean). Show the output?trueorfalse. Default:true.
Example:
uglifyjs("Minify React bundle", {
src: "react-app.js",
dst: "react-app.min.js"
});0.1.0
9 years ago