I’m looking for a way to structure my workflow so I don’t get confused/into trouble when working with “uncompressed” js/css files for development and minified ones for production.
I don’t want to have two html versions (one with development and one with minified js/css files) of the same source. Or do I have to?
Also whats the best way to automate the actual minify process?
NOTE: I’m looking for a local solution. Server side is not an option.
Currently the best solution is the HTML5 boilerplate build script.
Beware that there is a learning curve before being able to use the complete power.
Also it’s worth mentioning, that the build script optimized for websites, where every page uses the same JavaScript and CSS files. So if you have certain pages, that have additional CSS and JavaScript files that you want to have optimized/minified you might need to do this separately.
The script also compresses HTML and (optionally) leaves PHP stuff untouched.
HTML5 boilerplate build script is awesome. It’s open source, please contribute!
Note: Most of my infos are 3+ month old. Let me know about new developments.