You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not used the custom functions for the node-sass or the dart-sass legacy api, but according to this as i understand it: #1233 there should be a context object that should hold that information even when using the new dart-sass JS API.
I've run it with osx@11.5.2 on node@^v10.x.x but i assume the node version is not the problem, also sync or async does not and should not make a difference.
Would be great to find a solution for this, thanks for any help in advance.
The text was updated successfully, but these errors were encountered:
When using the custom fuctions: https://sass-lang.com/documentation/js-api/interfaces/Options#functions
I was looking for context information, like path of the file where the function is being executed to be able to resolve relative paths for example.
I have not used the custom functions for the node-sass or the dart-sass legacy api, but according to this as i understand it: #1233 there should be a context object that should hold that information even when using the new dart-sass JS API.
I don't seem to be able to retrieve that information using sass@^1.49.0, either because its not there or I'm too stupid to find it,
you can find a repository with a reproducable setup here:
https://github.com/dasiux/sass-functions-context-test
I've run it with osx@11.5.2 on node@^v10.x.x but i assume the node version is not the problem, also sync or async does not and should not make a difference.
Would be great to find a solution for this, thanks for any help in advance.
The text was updated successfully, but these errors were encountered: