Created
March 15, 2012 01:52
-
-
Save kagemusha/2041160 to your computer and use it in GitHub Desktop.
Rails: Specify additional asset files for precompilation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Used on: Rails 3.2.1 | |
If you have more than one set of assets to precompile, need to add using config.assets.precompile | |
E.g. if have mobile.css and mobile.js to precomp, do the following | |
In config/environments/production.rb (or whenver env you want precompiled) | |
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) | |
config.assets.precompile += %w( mobile.css mobile.js ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment