9.4. Asset Packaging
To install the Asset Packager plug-in, use script/plugin from the command prompt:
script/plugin install http://sbecker.net/shared/plugins/asset_packager
Once it's installed, create an Assert Packager configuration file by running:
When you're satisfied with the configuration, generate the merged files by running another rake task:
When running in development, the output will look like this:
But in the production environment, the output will be reduced to something like this:
To get the full benefit of asset packaging, the last step is to configure your deployment script to automatically rebuild the asset packages during deployment. For more information about using Asset Packager with Capistrano (the Rails-standard deployment automation tool), refer to Asset Packager's online documentation: http://synthesis.sbecker.net/pages/asset_packager.