Created
August 30, 2012 07:12
-
-
Save kristofclaes/3523637 to your computer and use it in GitHub Desktop.
LESS minifier for use in ASP.NET 4.5 bundling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LessMinify : IBundleTransform | |
{ | |
public void Process(BundleContext context, BundleResponse response) | |
{ | |
response.Content = dotless.Core.Less.Parse(response.Content); | |
response.ContentType = "text/css"; | |
var cssMinifier = new CssMinify(); | |
cssMinifier.Process(context, response); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment