libsass: Resolve directory paths to directory index files

Closes #12851
This commit is contained in:
Joe Mooring
2024-09-15 15:10:37 -07:00
committed by Bjørn Erik Pedersen
parent 2bc27657d8
commit 5b442b3cce
4 changed files with 56 additions and 5 deletions

View File

@@ -166,9 +166,10 @@ func (t importResolver) CanonicalizeURL(url string) (string, error) {
namePatterns = []string{"_%s.scss", "_%s.sass", "_%s.css"}
} else {
namePatterns = []string{
"_%s.scss", "%s.scss", "%s/_index.scss",
"_%s.sass", "%s.sass", "%s/_index.sass",
"_%s.scss", "%s.scss",
"_%s.sass", "%s.sass",
"_%s.css", "%s.css",
"%s/_index.scss", "%s/_index.sass",
}
}