public override async Task <CompilerResult> CompileAsync(string sourceFileName, string targetFileName) { if (WESettings.Instance.Scss.UseRubyRuntime) { await RubyScssServer.Up(); } return(await base.CompileAsync(sourceFileName, targetFileName)); }
public override async Task <CompilerResult> CompileAsync(string sourceFileName, string targetFileName) { //dont compile files that start with _ //http://sass-lang.com/documentation/file.SASS_REFERENCE.html#partials if (Path.GetFileName(sourceFileName).StartsWith("_")) { Logger.Log(string.Format("Ignoring {0}, see http://sass-lang.com/documentation/file.SASS_REFERENCE.html#partials", sourceFileName)); return(CompilerResult.GenerateResult(sourceFileName, targetFileName, "", true, "", "", null, true)); } if (WESettings.Instance.Scss.UseRubyRuntime) { await RubyScssServer.Up(); } return(await base.CompileAsync(sourceFileName, targetFileName)); }