Skip to content

Commit c1cc756

Browse files
winterificmadskristensen
authored andcommitted
Added support for reading lineFeed style option (cr | crlf | lf | lfcr) (#255)
1 parent dc1f553 commit c1cc756

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/WebCompiler/Compile/SassCompiler.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ private static string ConstructArguments(Config config)
134134
if (!string.IsNullOrEmpty(options.SourceMapRoot))
135135
arguments += " --source-map-root=" + options.SourceMapRoot;
136136

137+
if (!string.IsNullOrEmpty(options.LineFeed))
138+
arguments += " --linefeed=" + options.LineFeed;
139+
137140
return arguments;
138141
}
139142
}

src/WebCompiler/Compile/SassOptions.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,13 @@ protected override string CompilerFileName
9797
/// </summary>
9898
[JsonProperty("sourceMapRoot")]
9999
public string SourceMapRoot { get; set; } = string.Empty;
100+
101+
/// <summary>
102+
/// Linefeed style (cr | crlf | lf | lfcr)
103+
/// </summary>
104+
[JsonProperty("lineFeed")]
105+
public string LineFeed { get; set; } = string.Empty;
106+
107+
100108
}
101109
}

0 commit comments

Comments
 (0)