wycats / rake-pipeline-web-filters

MIT License
116 stars 34 forks source link

Compass + multiple inputs = :*( #3

Open jamesarosen opened 12 years ago

jamesarosen commented 12 years ago

See https://gist.github.com/1481953

dudleyf commented 12 years ago

I know Chris weighed in on this, but was there ever any resolution?

jamesarosen commented 12 years ago

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).

bstaats commented 12 years ago

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!

jamesarosen commented 12 years ago

@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.