Open jamesarosen opened 12 years ago
I know Chris weighed in on this, but was there ever any resolution?
I think Chris's suggestion was to write a custom version of Compass's Url
helpers that are aware of the Filter's Pipeline (and thus its input paths).
Hi James, Do you (or anyone) know how to get multiple scss partials to compile in the correct order when you have a main.scss file importing them?
Example, the main.scss contains the following imports to partial scss files.
@import "partials/base"; @import "partials/typography"; @import "partials/color"; @import "partials/layout";
Thanks!
@bstaats the issue is that you need to use Sass's importing and not use Rake-Pipeline for the partials. The relevant portion of my Assetfile
looks like this:
input 'app/assets/stylesheets', 'main.scss'
match "main.scss" do
filter WebFilters::SassCompiler
end
Notice that the input
only includes the master file.
See https://gist.github.com/1481953