Skip to content

Instantly share code, notes, and snippets.

@wrkrb33
Created August 24, 2012 17:13
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 wrkrb33/3453034 to your computer and use it in GitHub Desktop.
Save wrkrb33/3453034 to your computer and use it in GitHub Desktop.
rails 3 asset pipeline management
@jrochkind, in fact, after rake assets:precompile, in public/assets I see
<css_manifest_name>.css, <css_manifest_name>.css.gz, <css_manifest_name>-<hash>.css, and
<css_manifest_name>-<hash>.css.gz; and similar files for the .js resources.
I’m not quite sure what rails intends to do with all of those, but can confirm through
firebug that the <css_manifest_name>-<hash>.* compiled versions are what’s delivered to the
client.
The reason that I’m not compiling these into my overall application.js and application.css
files is that they are assets that are only required on a limited subset of pages, so I want
to keep them separate and include them only where necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment