The Web Markup Minifier (abbreviated WebMarkupMin) - a .NET library that contains a set of markup minifiers. The objective of this project is to improve the performance of web applications by reducing the size of HTML, XHTML and XML code.
WebMarkupMin absorbed the best of existing solutions from non-microsoft platforms: Juriy Zaytsev's
HtmlCompressor (written in Java).
Minification of markup produces by removing extra whitespace, comments and redundant code (only for HTML and XHTML). In addition, HTML and XHTML minifiers supports the minification of CSS code from
script tags, event attributes and hyperlinks with
JSMin and built-in CSS minifier based on the Mads Kristensen's
(contains minifier-adapters for the
Microsoft Ajax Minifier) and WebMarkupMin.Yui (contains minifier-adapters for
YUI Compressor for .Net).
KnockoutJS, Kendo UI MVVM and
In addition, there are several modules that integrate this library into ASP.NET: WebMarkupMin.Web (for ASP.NET 4.X), WebMarkupMin.Mvc (for ASP.NET MVC 3, 4 or 5) and WebMarkupMin.WebForms (for ASP.NET Web Forms 4.X).
Currently, I am working on a new version of library -
WebMarkupMin 2. After a while, this project completely move to GitHub.
You can try WebMarkupMin in action and experiment with different minification settings live on the
WebMarkupMin Online site.
External JS and CSS minifiers
Who's Using WebMarkupMin
If you use WebMarkupMin in some project, please send me a message so I can include it in this list:
WebMarkupMin was created and is maintained by Andrey Taritsyn.