-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
dartsass: Unable to resolve directory paths to directory index files #12849
Comments
What is a "index file" and where is the spec? |
To reiterate, the problem is limited to Sass imported as a Hugo module. If the files exist in the OS file system, directory imports work as expected. |
Thanks for putting my inane forum ramblings together into a bug @jmooring. I really appreciate it. 😄 Was tearing my hair out with this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Details: https://discourse.gohugo.io/t/51528/15
Applicable to Sass imported as a Hugo module, Hugo is unable to resolve directory paths to directory index files.
For example, this:
does not resolve to any of these:
foo/bar/_index.scss
foo/bar/_index.sass
foo/bar/_index.css
This affects both
@use
and@forward
rules. See:hugo/resources/resource_transformers/tocss/dartsass/transform.go
Line 137 in 28f621d
Based on experimentation, we should resolve to a file instead of a directory when both exist with same base name:
In the above, we should resolve to
foo.scss
instead offoo/_index.scss
.The text was updated successfully, but these errors were encountered: