Hi all
One of the things I'd really like to do for our rewrite is to keep download size as small as possible, and I think an easy win to do this would be to minify any javascript (and potentially CSS) files on build
This isn't something I've any experience setting up, so I'm throwing it out there. Has anybody done this before - or has anybody read any good ways to minify files on build without needing the developer having to do it manually to check their work on their own machine - so development (maybe default?) installations would still use the "regular" version of the file(s)
Some technical details:
- The server we use already has Java installed, and so YUI (
http://yui.github.io/yuicompressor/) seems like a good choice (but I don't think that means we /have/ to use YUI)
- There's only one CSS file so far, and a couple of Javascript files. I'm extremely open to changing how we include these files - I'm of the opinion that using jQuery and the jQuery plugin architecture (to keep things modularised) will be a nice way to do things, but we also need to keep 3rd party libraries (such as the maps library we're using) in mind
- We have a flag in the config file for development mode
Does anyone have any thoughts/ideas/concerns?
Clair