Skip to content

Commit 3e7a919

Browse files
Merge pull request #22 from xperiandri/master
Fixed missing TryImport options property passing
2 parents ba05b00 + 1d6b26f commit 3e7a919

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/Compiler.cs

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public Task ExecuteAsync(IAssetContext context)
6363
settings.SourceMapContents = options.SourceMapContents;
6464
settings.SourceMapEmbed = options.SourceMapEmbed;
6565
settings.SourceMapRoot = options.SourceMapRoot;
66+
settings.TryImport = options.TryImport;
6667
}
6768

6869
ScssResult result = Scss.ConvertToCss(context.Content[route].AsString(), settings);

src/WebOptimazerScssOptions.cs

+1-10
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,12 @@
22
using System;
33
using System.Collections.Generic;
44
using System.Text;
5+
using static SharpScss.ScssOptions;
56

67
namespace WebOptimizer.Sass
78
{
89
public class WebOptimazerScssOptions
910
{
10-
/// <summary>
11-
/// Delegates that tries to import the specified file.
12-
/// </summary>
13-
/// <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>
14-
/// <param name="parentPath">The path of the parent file that is trying to import <paramref name="file"/>.</param>
15-
/// <param name="scss">The output scss if import was found.</param>
16-
/// <param name="map">The output map if import was found. May be null</param>
17-
/// <returns><c>true</c> if import was found; <c>false</c> otherwise</returns>
18-
public delegate bool TryImportDelegate(ref string file, string parentPath, out string scss, out string map);
19-
2011
/// <summary>
2112
/// Initializes a new instance of the <see cref="ScssOptions"/> class.
2213
/// </summary>

0 commit comments

Comments
 (0)