-
Notifications
You must be signed in to change notification settings - Fork 75
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
Ability to register custom mixins? #698
Comments
Regarding the ability to register custom mixins, this is unlikely to happen. By definition, a mixin produces a side effect in the compilation. And I don't see how this could be done without access to the internal state of the compiler. |
I think the case of globs could be solved in 2.0 (not yet available, but you could try to prototype an equivalent logic in JS using dart-sass) thanks to a custom importer:
|
To clarify my previous comment: such |
The
scssphp-glob
function throws the following error:however this doesn't seem to be possible with
registerFunction
as that function is expected to return a value for a property.I think what we actually need is a
registerMixin
function so that we could do something like this:Unless I'm missing something?
The text was updated successfully, but these errors were encountered: