-
Notifications
You must be signed in to change notification settings - Fork 48
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
How to @import remote css url? #177
Comments
I'm not sure there is a way to do this natively, without writing an extension. In case of |
Well I basically want to pass it through as a normal css import, but any syntax I try still gets picked up, other sass compiler plugins don't have this problem so it seems eyeglass is responsible in some way Sadly node also hangs when I try to add a simple importer, not sure what's going on there. |
Right so, there are quite a few things that go wrong. Eyeglass itself uses importers heavily and wrongly prenormalize urls via Next thing that's not really neat is eyeglasses exclusive use of the import callback, this isn't documented anywhere. Node-sass allows you to either call the callback or return the resolved import from your function. Eyeglass however only works on the callback and will happily hang until you've called that, it should allow returns just like node-sass does. @stefanpenner @chriseppstein would you accept a PR for these changes? |
Alright I've got no clue what I did wrong previous times but doing an Eyeglass should at least include something in the docs that using urls in import absolutely requires |
From the Sass Reference:
The aspect of requiring the I'd accept a PR for working around libSass's bugs to at least provide a better error. |
So trying to do this but each normal url gets converted into a local module lookup
The text was updated successfully, but these errors were encountered: