Skip to content

Commit 57faa1b

Browse files
Krusenmadskristensen
authored andcommitted
Fix dependency relative/absolute path mismatch issues (#298)
1 parent 811236b commit 57faa1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebCompiler/Dependencies/SassDependencyResolver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public override void UpdateFileDependencies(string path)
2929
{
3030
if (this.Dependencies != null)
3131
{
32-
path = path.ToLowerInvariant();
32+
FileInfo info = new FileInfo(path);
33+
path = info.FullName.ToLowerInvariant();
3334

3435
if (!Dependencies.ContainsKey(path))
3536
Dependencies[path] = new Dependencies();
@@ -46,7 +47,6 @@ public override void UpdateFileDependencies(string path)
4647
}
4748
}
4849

49-
FileInfo info = new FileInfo(path);
5050
string content = File.ReadAllText(info.FullName);
5151

5252
//match both <@import "myFile.scss";> and <@import url("myFile.scss");> syntax

0 commit comments

Comments
 (0)