On Thu, Jan 22, 2009 at 5:30 PM, Tim Wintle <[email protected]>wrote:
> I guess I will pre-run this over the most important features before
> rolling out updates - a quick test shows that this does not always work
> if you use php-shindig's compression, is this expected?
>
the yuicompressor does some seriously funky stuff to get the file size down
as much as possible, so it's not entirely surprising that it would trip up
JsMin; My advice would be to mass compress all the .js files in the features
folder, and disable shindig's javascript compression.
A simple way to mass compress them all from the command line would be to do
something like:
# cd shindig/features
# find . -name "*.js" -exec java -jar ~/yuicompressor-2.3.5.jar -o {} {} \;
but again, do be careful then when updating from svn, best to rm -rf
features before updating, and re-running the mass compression on the new
checkout / update.