Skip to content

Commit

Permalink
Merge pull request #22 from xperiandri/master
Browse files Browse the repository at this point in the history
Fixed missing TryImport options property passing
  • Loading branch information
madskristensen authored Feb 25, 2021
2 parents ba05b00 + 1d6b26f commit 3e7a919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/Compiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public Task ExecuteAsync(IAssetContext context)
settings.SourceMapContents = options.SourceMapContents;
settings.SourceMapEmbed = options.SourceMapEmbed;
settings.SourceMapRoot = options.SourceMapRoot;
settings.TryImport = options.TryImport;
}

ScssResult result = Scss.ConvertToCss(context.Content[route].AsString(), settings);
Expand Down
11 changes: 1 addition & 10 deletions src/WebOptimazerScssOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using static SharpScss.ScssOptions;

namespace WebOptimizer.Sass
{
public class WebOptimazerScssOptions
{
/// <summary>
/// Delegates that tries to import the specified file.
/// </summary>
/// <param name="file">The file to import. The fully resolved path can be modified by this delegate by re-assigning the <paramref name="file"/> to the path fully resolved.</param>
/// <param name="parentPath">The path of the parent file that is trying to import <paramref name="file"/>.</param>
/// <param name="scss">The output scss if import was found.</param>
/// <param name="map">The output map if import was found. May be null</param>
/// <returns><c>true</c> if import was found; <c>false</c> otherwise</returns>
public delegate bool TryImportDelegate(ref string file, string parentPath, out string scss, out string map);

/// <summary>
/// Initializes a new instance of the <see cref="ScssOptions"/> class.
/// </summary>
Expand Down

0 comments on commit 3e7a919

Please sign in to comment.