Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LessMsbuildTasks.1.0.0.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>LessMsbuildTasks</id>
<version>1.0.10</version>
<version>1.0.11</version>
<title>.Less Msbuild Tasks</title>
<authors>James</authors>
<owners />
Expand Down
Binary file removed LessMsbuildTasks.1.0.10.nupkg
Binary file not shown.
Binary file added LessMsbuildTasks.1.0.11.nupkg
Binary file not shown.
12 changes: 5 additions & 7 deletions LessMsbuildTasks/NodelessCompile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ public class NodelessCompile : Task

/// <summary>
/// Adds --compress
/// Note: seems like latest alpha version (not this one) supports --clean-css
/// We may want to change to this after it's released
/// </summary>
public bool MinifyOutput { get; set; }

/// <summary>
/// If true, source maps are created
/// </summary>
public bool CreateSourceMap { get; set; }
/// <summary>
/// If true, source maps are created
/// </summary>
public bool CreateSourceMap { get; set; }

/// <summary>
/// Adds --line-numbers=comments
Expand Down Expand Up @@ -182,7 +180,7 @@ private string GetLesscArguments(string inputFilePath, string outputFilePath)

//Compress CSS
if (MinifyOutput)
args.Add( "-compress" );
args.Add("--clean-css");

if(CreateSourceMap)
args.Add(string.Format("--source-map={0}.map", outputFilePath));
Expand Down
Binary file modified tools/LessMsbuildTasks.dll
Binary file not shown.