Ruby, Rails, Firefox, Anime, Mac
There’re a bunch of really useful plugins that help you bundle your JS and CSS files, most of them offering minifying/packing of JS and stripping of comments and whitespace in CSS as well. I was a big fan (still love it) of Asset Packager, but newer plugins like PackR and Bundle-fu work great too.
With Rails 2.0 though, unless you want the minifying/packing/comment-stripping features, you can do away with installing a packager plugin. Remember your trusty
stylesheet_link_tag? They now accept a
Of course, this only takes place if caching is turned on (
ActionController::Base.perform_caching), which is on by default in the production environment and off in the development environment.
For those who want to look at some code, check out the changeset.