justo-plugin-uglifyjs

0.1.0 • Public • Published

NPM version Build Status Dependency Status devDependency Status

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 or false. Default: true.

Example:

uglifyjs("Minify React bundle", {
  src: "react-app.js",
  dst: "react-app.min.js"
});

Package Sidebar

Install

npm i justo-plugin-uglifyjs

Homepage

justojs.org

Weekly Downloads

0

Version

0.1.0

License

none

Last publish

Collaborators

  • justojs