This package and repository is no longer being maintained. Feel free, as always, to fork and make your own versions! My apologies for having to close down this project; I simply don't have enough time anymore to keep track of all the API changes in Brackets required to keep this working.
For an alternative minifier based off this one, take a look at @abagshaw's fork
Minifier for Brackets
Minifies JavaScript and CSS files in Brackets and saves to {filename}.min.{ext}
using UglifyJS2 (for JavaScript) and YUI (for CSS).
- Run Brackets
- Select File > Install Extension...
- Enter
https://github.com/alfredxing/brackets-minifier/archive/master.zip
as Extension URL. - Click Install to begin downloading and installing the extension.
Clone this repository into ~/Library/Application Support/Brackets/extensions/user/
and restart Brackets.
To minify a file, use the keyboard shortcut Cmd/Ctrl+M
. You can also minify files on save by checking the corresponding item in the Edit menu.