Skip to content
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

Can't access this.options.file in functions #1233

Closed
duzun opened this issue Feb 13, 2021 · 1 comment · Fixed by #1236
Closed

Can't access this.options.file in functions #1233

duzun opened this issue Feb 13, 2021 · 1 comment · Fixed by #1236
Assignees
Labels

Comments

@duzun
Copy link

duzun commented Feb 13, 2021

I'm using node-sass in a project and am considering to migrate to dart-sass, but have a compatibility issue.

In node-sass docs there is this note:

...
 // this.options contains this options hash, this.callback contains the node-style callback

this.options is also available in functions and I rely on this.options.file for proper routing of url(path) in SASS files.

When using dart-sass the this object is the global scope :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants