Compress, combine & minify

Today I’m working on a process to take all of my CSS files, JavaScript files and Template, minify them (which means to take out all the extra spaces, comments, etc.), combine them into a single set of files and then compress them.

The only component I’m 100% sure about so far is YUICompressor. For the “build” part, I’ve been looking at using GNU’s make, Boost.Build/Jam or just writing a script myself.

The result needs to work very quickly, keep the “built” files out of my git repository and also be easy to switch between the -min, combo and regular (which are debug) files. I like the way YAHOO! does it with YUI. They have a file with -debug, -min or a combo (which I think are always minified).


No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: