YUIcompress: A Plugin for Panic's Coda

I've spent the last few weeks compressing a lot of CSS and JavaScript files, don't ask me why, I just have. And, at some point the work became too tedious. I googled for a Coda plugin that would make my life a whole lot easier by automatically compressing (using the YUI Compressor) and saving my files. But, to my surprise I found nothing of the sort. So, I figured I would give plugin creation a go, and YUIcompress was born.

Updated to version 0.3 on February 7, 2011.
Fixes a CSS media query issue in previous versions of YUI Compressor. Thanks for the tip Sparanoid.

How it works

  1. Download and install the plugin.
  2. Open the file you wish to compress (css or js).
  3. Select YUIcompress from the Plug-ins menu or press command + shift + Y.
  4. Voilá! You should now have a compressed file with the name {filename}.min.{js|css} in the same directory where the uncompressed file is located.

Don't blame me!

Feel free to download, share, and use YUIcompress, just don't blame me if something goes horribly, horribly wrong. Depending on the file size, you may get the infamous beach ball for a few seconds, but nothing should break. I have used the plugin for a couple of weeks now, and nothing has happened to me or my computer, not yet at least.