-
Notifications
You must be signed in to change notification settings - Fork 464
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
File extension precedence #1402
Comments
There is a discussion what the import identifier actually means at #1160. I think if it matches the existing file name, it should be used first, otherwise it would be pretty strange. |
Ok thank you. So, this behavior is not actually intended... |
I believe this behaviour is a hold over from before we supported the |
The order for searched extensions is
Latest ruby sass (at least 3.4.15) will give an error if it finds multiple files that could be imported:
|
@mgreter I believe the issue is that our search order differs from Ruby Sass. Seems like a legitimate issue to me.
Ruby Sass does not support css imports and IMO this is a mistake we made. |
I don't see what #1341 has to do with the look up order for imports? If |
Other than the extension order we do match the ruby behavior exactly AFAIK!? |
But that's what this issue is about. Admittedly it's an edge case, but this could affect code portability between the two engines. |
If we change to |
When a sass-file imports a file without extension and there are two files with the same name, which extension takes precedence? It looks like the scss always takes precedence, but I would have expected that the file with same extension as the importing file is preferred. Is this behavior specified?
Sorry, if this has been previously discussed. I could not find it in the issue search.
The text was updated successfully, but these errors were encountered: