Closed sandstrom closed 12 years ago
If _bar.scss isn't an input to the pipeline, rakep doesn't know that foo.scss depends on it. The Sass filter adds files from :additional_load_paths
to the dependencies for each Sass file, so if you pass the directory containing _bar.scss into :additional_load_paths
when you call the Sass filter, it should work:
# Assuming _bar.scss is in 'scss/_bar.scss'
scss :additional_load_paths => ['scss']
@dudleyf thanks! I added "." to the path and it worked. (though I could import them before which is strange, anyway it works now)
Yeah, if they're in the current directory, Sass's @import
will find them, but the Sass filter won't add them to the dependencies. So in this case, passing in the :additional_load_paths
is just a workaround to force the filter to notice the extra dependencies.
foo.scss
_bar.scss
Steps to reproduce:
rakep server