Created
August 24, 2012 17:13
-
-
Save wrkrb33/3453034 to your computer and use it in GitHub Desktop.
rails 3 asset pipeline management
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
@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