Skip to content

Instantly share code, notes, and snippets.

@kagemusha
Created March 15, 2012 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kagemusha/2041160 to your computer and use it in GitHub Desktop.
Save kagemusha/2041160 to your computer and use it in GitHub Desktop.
Rails: Specify additional asset files for precompilation
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