rails/rails — Issue #3919: Asset Pipeline and Sass - Incorrect documentation or bug
Author: aaronchi
Created: 2011-12-09 17:24:16+00:00
State: open

In the RailsGuide, it says this about precompiling for the asset pipeline:

`The default matcher for compiling files includes application.js, application.css and all files that do not end in js or css`

I had some problems recently with Rails not precompiling additional root level .css.scss files unless they are specified in config.assets.precompile. Even more confusing is that in order to precompile these files, they must be specified with .css as the extension instead of css.scss

For example, if I have a file `/app/assets/stylesheets/` called `layout.css.scss`, it will not precompile unless this is added:

config.assets.precompile += ['layout.css']

I think the documentation needs to be updated or Rails needs to actually do what it says and compile all .scss files automatically.