Skip to content

Commit 7d51d4e

Browse files
committed
Do not compile _*.scss files to their own output
1 parent a944245 commit 7d51d4e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/WebCompiler/Compile/SassCompiler.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ public CompilerResult Compile(Config config)
3333
OriginalContent = content,
3434
};
3535

36-
if (config.GlobalMatch)
37-
{
38-
if (string.IsNullOrWhiteSpace(content) || Path.GetFileName(config.InputFile).StartsWith("_"))
39-
return result;
40-
}
36+
if (config.GlobalMatch && string.IsNullOrWhiteSpace(content) || Path.GetFileName(config.InputFile).StartsWith("_"))
37+
return result;
4138

4239
try
4340
{

0 commit comments

Comments
 (0)