Using the GetBundles bundle
This bundle should be available to install via the GetBundles bundle. Make sure that you install the correct version as there may be bundles with a similar name by other people. Just check that it's got (by mattkirman) at the end of it.
From a source archive
Simply download a copy of the bundle from http://github.com/mattkirman/YUI-Compressor-tmbundle/downloads and double-click to install into TextMate.
There are 3 steps to getting everything working:
Unzip the YUI Compressor and copy the
.jarfile from the to a location of your choosing (make a note of where you saved it).
Preferences...item in this bundle and replace the text
/absolute/path/to/yui-compressor.jarwith the actual path to your
.jarfile. It must be an absolute path,
Select the files you want to run through the YUI Compressor in the Project Drawer and execute the command using ⇧⌘Y (cmd-shift-Y)
The compressed files share the same path as the original files, with the addition of
.min before the file extension. For example:
You can compress more than one file at the same time, just select all the files you want to compress in your Project Drawer before hitting
Existing files with the same name will be overwritten without warning.
For more information read
Help in the installed bundle.