Implements UglifyJS into Komodo.
Download the lastest version and open with Komodo or follow these instructions
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.
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();
}
- 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