I want to have compressed/minified JS and CSS on my live site but obviously the raw, originals on my local development server. Does anyone have any ideas on how I could sort of automate/speed up the process? I imagine it would be fine to manually compress the first few times, but after that, it would get annoying! Thanks!
http://verens.com/archives/2008/05/20/efficient-js-minification-using-php/ perhaps this can help.(not in anyway connected to the site.. just found it googling.. I was looking for something along the line of what you are looking for.)
http://javascriptcompressor.com/ I have not had to do this lately but I think it will help. hope so, Nigel
Thanks but I'm not looking for an online, "manual" solution. Would just get too annoying very quickly...
then JSMin is what you are looking for. http://code.google.com/p/jsmin-php/ (direct link to the download that the blog post was talking about.) you have your .js files all readable and editable.. but when users request it.. it will be minified on the fly... I linked to the blog post so that you can see how to use it. The google code page is the site for the software itself
Indeed and sorry, Its my birthday and I am having a really long day. Not to mention the number of beers I have in me. http://developer.yahoo.com/yui/compressor/ that will help, Nigel