Experience Internet is an award–winning web design agency with a 110% money–back guarantee. Call us on 0845 053 3139 to find out more.

Requirements

The YUI Compressor TextMate Bundle requires:

Installation

  1. Extract the YUI Compressor TextMate Bundle ZIP file.
  2. Copy the yuicompressor.jar file to a location of your choosing.
  3. Double-click YUI Compressor.tmbundle to install the bundle in TextMate.
  4. Open TextMate, and navigate to the Bundle Editor.
  5. Select the Preferences... item from the YUI Compressor bundle, and replace the text /absolute/path/to/yuicompressor.jar with the actual path to the .jar file from step 2. Note that this must be an absolute path; ~/ won’t work.

Usage

Select the files you want to compress in the Project Drawer, and execute the command using ⌃⇧Y (control-shift-Y).

The compressed files share the same root filename, with the addition of .min before the file extension. For example:

  • my_css_file.css becomes my_css_file.min.css.
  • my_js_file.js becomes my_js_file.min.js.

It’s worth noting that:

  • Existing files with the same name will be overwritten without warning.
  • Files with an extension other than .css or .js will be silently ignored.
  • When compressing a JavaScript file, the --nomunge option is automatically enabled.

License

The YUI Compressor TextMate Bundle is made available under a Creative Commons Attribution-Share Alike 3.0 Unported License.

All code specific to the YUI Compressor itself is issued under a BSD license. YUI Compressor extends and implements code from Mozilla’s Rhino project, which is issued under the Mozilla Public License (MPL).

Copyright © Experience Internet. The header background image is part of Sink or Swim, copyright © Michel Keck.