sstephenson/sprockets — Issue #232: Conflicting application.css.scss file within subdir
Author: islandr
Created: 2011-10-26 01:28:42+00:00
State: open

Chased a deceiving bug today that I finally tracked down to a naming conflict.

Within app/assets/stylesheets I have the typical application.css.scss file, but I also had an identically named file within app/assets/stylesheets/core. When I tried to run `rake assets:precompile` I'd get an `undefined variable: "$..."` error and it was driving me nuts because the root application.css.scss file had all the necessary imports. Turns out the application.css.scss file within the core subdirectory was taking precedence over the one in the root directory.

Not sure if this is a bug or a desired behavior but I wanted to document it just in case.