tocss: Fix the import resolving from absolute to relative assets paths

Fixes #12137
This commit is contained in:
Bjørn Erik Pedersen
2024-02-24 11:51:16 +01:00
parent b2b7bfdd3a
commit 189b72331e
5 changed files with 44 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ func (t importResolver) CanonicalizeURL(url string) (string, error) {
var pathDir string
if isURL {
var found bool
prevDir, found = t.c.sfs.MakePathRelative(filepath.Dir(filePath), false)
prevDir, found = t.c.sfs.MakePathRelative(filepath.Dir(filePath), true)
if !found {
// Not a member of this filesystem, let Dart Sass handle it.