-
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
Allow to replace tilde sign with given path value to fix the tilde sign #585
base: main
Are you sure you want to change the base?
Conversation
…gn path resolution
Replacing that in all strings does not make any sense and would break spec compliance. We already have a hook for import paths, where you can pass a callable that performs a custom resolution. |
ImportPath hook is not working when there is a import with |
What do you mean by "does not work" ? Your proposal here impacts all strings, not only imports, so it is clearly not something we will merge. |
… changes as per new changes for RegisteredVars variable
@stof test.scss
PHP CODE
|
… changes as per new changes for RegisteredVars variable
@stof |
This behavior is not part of the Sass standard. dart-sass does not support those As Scssphp 2.0 will not have non-standard features, it would mean I would have to mark that feature as deprecated as soon as it is merged. |
Allow to replace tilde sign with given path value to fix the tilde sign path resolution
Now Tilde( ~ ) can be replaced with the varaibles
path_for_tilde
.When there is
~
sign exists in import line then define the replacement like:$compiler->addVariables(['path_for_tilde' => 'PATH_TO_REPLACE'])
AS PER NEW CHANGES
With working JS frameworks sometimes some library path starts with the
~
[Tilde] sign and this variable will allow you to set the starting~
to replace the directory path.