About

Implements UglifyJS into Komodo.

Install

Download the lastest version and open with Komodo or follow these instructions

Use

Goto to Tools -> UglifyJS and select an option.

  • Compress Saved JS File takes a .js file and compresses it into a new file with the same name but ending in .min.js
  • Compress Current Buffer takes the contents of the current buffer and compresses it.
  • Compress Selection takes the current selection and compresses it.

Macro

You can create a macro that will automatically compress a JavaScript file when you save. Use the following code and have it trigger After file save:

if (extensions.uglify) {
    extensions.uglify.compressFile();
}

Change Log

1.1.0

  • Updated UglifyJS compressor to v1.2.5
  • Added support for saving remote files
  • Added a preference pane to choose the file extension (.min.js) and disable debug messages when saving files