justo-plugin-uglifyjs
v0.1.0
Published
Plugin for UglifyJS.
Downloads
1
Readme
Plugin for UglifyJS.
Proudly made with ♥ in Valencia, Spain, EU.
Install
justo install justo-plugin-uglifyjs
Use
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?true
orfalse
. Default:true
.
Example:
uglifyjs("Minify React bundle", {
src: "react-app.js",
dst: "react-app.min.js"
});