Skip to content

Commit

Permalink
Do not compile _*.scss files to their own output
Browse files Browse the repository at this point in the history
  • Loading branch information
LordJZ committed Oct 11, 2017
1 parent a944245 commit 7d51d4e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/WebCompiler/Compile/SassCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 7d51d4e

Please sign in to comment.