From 7d51d4e6f6f957a97af8c1203a6bc989b5352d9e Mon Sep 17 00:00:00 2001 From: LordJZ Date: Wed, 11 Oct 2017 19:33:32 +0300 Subject: [PATCH] Do not compile `_*.scss` files to their own output --- src/WebCompiler/Compile/SassCompiler.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/WebCompiler/Compile/SassCompiler.cs b/src/WebCompiler/Compile/SassCompiler.cs index 47b85d5d..15679396 100644 --- a/src/WebCompiler/Compile/SassCompiler.cs +++ b/src/WebCompiler/Compile/SassCompiler.cs @@ -33,11 +33,8 @@ public CompilerResult Compile(Config config) OriginalContent = content, }; - if (config.GlobalMatch) - { - if (string.IsNullOrWhiteSpace(content) || Path.GetFileName(config.InputFile).StartsWith("_")) - return result; - } + if (config.GlobalMatch && string.IsNullOrWhiteSpace(content) || Path.GetFileName(config.InputFile).StartsWith("_")) + return result; try {