Anyone know of a good technique that minify and combine CSS files from an ASP.NET App_Themes folder before including them in the page?
I always use StyleManager to combine and minify my CSS. It uses a .NET port of YUI Compressor under-the-hood, and adds the ability to combine stylesheets too, so it should do exactly what you need by the sounds of it.
It also adds some nice features like CSS constants, tilde (~) resolution in background-image urls, cache control, etc.
Rejuicer is a great new minifier for ASP.NET that's getting a lot of buzz: http://rejuice.me
It:
The configuration (done on ApplicationStart in global.asax.cs) is as simple as:
OnRequest.ForJs("~/Combined.js")
.Compact
.FilesIn("~/Scripts/")
.Matching("*.js")
.Configure();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With