-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where are imports searched for? #6
Comments
This package relies on sass.compile method from libsass package, and the "Compiler base" from django-pipeline, here is all the logic of this package But I think you have to use relative imports (relative to the file importing your base style) |
Hmmm... I'm not sure how I can achieve that; I'm importing from a scss provided by another django app, so the paths are not relative in filesystem terms, but they are relative from django's finders' point of view. |
Absolute imports then? The problem is that there is not built in stuff in libass for doing that, yes, it could be interesting to do it here |
Hmm... Can a "search path" be passed to libsass for relative imports? |
Hmm... looks like it's only possible with |
I've a scss file (
site.scss
) with a few imports at the top:This file is inside one of my django app's
static/js
directory.site.scss
is inside my app'sstatic/js
.(My main SCSS file uses a few variables that are set inside other apps, and this is because the main SCSS file is shared across many sites).
This worked with
django-sass-processor
, but since I'm usingdjango-compressor
, I really want to move tolibsasscompiler
. However, I'm getting this error:What's the search criteria when looking for imports? Any hints on how to work around this?
The text was updated successfully, but these errors were encountered: