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.2 on May 20, 2010.
How it works
- Download and install the plugin.
- Open the file you wish to compress (
cssorjs). - Select YUIcompress from the Plug-ins menu or press
command+shift+Y. - 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.
» Cesar
04/30/2010 5:45 pm
» Patrick
04/30/2010 9:27 pm
» LeBen
05/02/2010 1:29 pm
@Patrick You are right, it doesn’t work on remote files since it runs the YUI Compressor command on the Terminal's local shell. I believe the LESS Compiler plug-in has the same problem, but I will investigate further.
@LeBen Hmm, I have the same setup and it works fine for me. Could you try saving the files first, and then giving it a go?
» Bedrich
05/02/2010 2:39 pm
» LeBen
05/04/2010 3:41 pm
The only other thing I can think about is file permissions. Sorry I can't be much help, not really sure what's wrong :\
» Bedrich
05/04/2010 10:16 pm
» Blaze
05/13/2010 9:27 am
» Timon
05/20/2010 5:53 am
Thanks for bringing that bug to my attention. The problem has been fixed and the plugin updated.
» Bedrich
05/20/2010 1:38 pm
» Chuck Pearson
06/18/2010 12:52 pm
Things are still working for me and I'm running 1.6.11, which I think is the latest release. Are you compressing a CSS or JS file? How big is the file? The latter could cause the beach ball to appear but it shouldn't crash things. Any other clues you can give me will help in solving your issue. Thanks.
» Bedrich
06/18/2010 1:21 pm
» Chuck Pearson
06/18/2010 2:17 pm
Quite a large CSS file :) My guess is that its size is making the beach ball appear and Coda freeze. The one way to know for sure is to test the plugin with a smaller file and see what happens. I will look into the code and see if there is something I can do to improve performance.
» Bedrich
06/18/2010 3:19 pm
» Chuck Pearson
06/18/2010 4:50 pm
» Chuck Pearson
06/18/2010 4:53 pm
Awesome! Glad to know the problem was solved with the update and that the plugin is coming in handy for you and your team. Cheers.
» Bedrich
06/18/2010 5:18 pm
» Adam
07/06/2010 3:19 am
Glad you like the plugin! I'm pretty sure preference menu panes cannot be added for a plugin but sub-menus could do the trick, that is, depending on what you have in mind :)
» Bedrich
07/07/2010 9:37 am
» Blaze
07/16/2010 9:07 pm
Hmm…not sure what could be wrong, I am also running 1.6.12 and things work well for me. @Chuck had some problems when he was running 1.6.11. Anything more specific to your problem? Is the app crashing? Or, is the .min file not appearing?
» Bedrich
07/19/2010 12:33 pm
» Joe
08/04/2010 12:12 pm
» Theo
08/10/2010 3:22 pm
» Blaze
09/01/2010 6:04 am
» Bedrich
09/03/2010 2:46 pm