32,357

Downloads

174

Downloads of v 2.1.0

26

Average downloads per day

2016-07-19

Last published

Share on Social Networks

Web Markup Minifier: Core

2.1.0

The Web Markup Minifier (abbreviated WebMarkupMin) is 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 Experimental HTML Minifier (http://github.com/kangax/html-minifier/) (written in JavaScript) and Sergiy Kovalchuk's HtmlCompressor (http://code.google.com/p/htmlcompressor/) (written in Java).

Minification of markup produces by removing extra whitespaces, comments and redundant code (only for HTML and XHTML). In addition, HTML and XHTML minifiers supports the minification of CSS code from style tags and attributes, and minification of JavaScript code from script tags, event attributes and hyperlinks with javascript: protocol. WebMarkupMin.Core contains built-in JavaScript minifier based on the Douglas Crockford's JSMin (http://github.com/douglascrockford/JSMin) and built-in CSS minifier based on the Mads Kristensen's Efficient stylesheet minifier (http://madskristensen.net/post/Efficient-stylesheet-minification-in-C). The above mentioned minifiers produce only the most simple minifications of CSS and JavaScript code, but you can always install additional modules that support the more powerful algorithms of minification: WebMarkupMin.MsAjax (contains minifier-adapters for the Microsoft Ajax Minifier - http://ajaxmin.codeplex.com), WebMarkupMin.Yui (contains minifier-adapters for YUI Compressor for .Net - http://github.com/PureKrome/YUICompressor.NET) and WebMarkupMin.NUglify (contains minifier-adapters for the NUglify - http://github.com/xoofx/NUglify).

Also supports minification of views of popular JavaScript template engines: KnockoutJS, Kendo UI MVVM and AngularJS 1.X.

To install Web Markup Minifier: Core, run the following command in the Package Manager Console

Install-Package WebMarkupMin.Core

Release Notes

1. In configuration settings of HTML/XHTML minifier was changed type of `ProcessableScriptTypeCollection` and `CustomAngularDirectiveCollection` properties from `IEnumerable<string>` to `ISet<string>`;
2. In configuration settings of HTML minifier was changed type of `PreservableOptionalTagCollection` property from `IEnumerable<string>` to `ISet<string>`;
3. In configuration settings of HTML/XHTML minifier was changed a default value of `ProcessableScriptTypeList` property from "" to "text/html";
4. In `CrockfordJsMinifier` was optimized memory usage.

Owners

Authors

Andrey Taritsyn

Copyright

Copyright (c) 2013-2016 Andrey Taritsyn - http://www.taritsyn.ru

Tags

Dependencies

Version History

Version Downloads Last updated
Web Markup Minifi... 2.0.2 239 Tuesday, July 12, 2016
Web Markup Minifi... 2.0.1 86 Saturday, July 9, 2016
Web Markup Minifi... 2.0.0 249 Tuesday, June 28, 2016
Web Markup Minifi... 2.0.0-rc9 69 Monday, June 13, 2016
Web Markup Minifi... 2.0.0-rc8 144 Thursday, May 19, 2016
Web Markup Minifi... 2.0.0-rc7 104 Tuesday, May 10, 2016
Web Markup Minifi... 2.0.0-rc6 117 Saturday, April 2, 2016
Web Markup Minifi... 2.0.0-rc2 707 Saturday, December 5, 2015
Web Markup Minifi... 2.0.0-rc1 524 Friday, November 20, 2015
Web Markup Minifi... 2.0.0-beta5 223 Saturday, October 17, 2015
Web Markup Minifi... 2.0.0-beta4 387 Friday, September 4, 2015
Web Markup Minifi... 2.0.0-beta2 77 Monday, August 24, 2015
Web Markup Minifi... 2.0.0-beta1 43 Thursday, August 13, 2015
Web Markup Minifi... 2.0.0-alpha2 46 Friday, July 31, 2015
Web Markup Minifi... 2.0.0-alpha1 52 Friday, July 17, 2015
Web Markup Minifi... 1.1.5 32 Saturday, July 9, 2016
Web Markup Minifi... 1.1.4 118 Wednesday, June 29, 2016
Web Markup Minifi... 1.1.3 414 Tuesday, June 14, 2016
Web Markup Minifi... 1.1.2 39 Monday, June 13, 2016
Web Markup Minifi... 1.1.0 1,272 Tuesday, April 5, 2016
Web Markup Minifi... 1.0.1 3,913 Sunday, December 6, 2015
Web Markup Minifi... 1.0.0 4,249 Wednesday, August 26, 2015
Web Markup Minifi... 0.9.12 4,290 Wednesday, April 1, 2015
Web Markup Minifi... 0.9.11 1,873 Saturday, January 31, 2015
Web Markup Minifi... 0.9.9 1,005 Tuesday, November 25, 2014
Web Markup Minifi... 0.9.8 2,853 Sunday, October 26, 2014
Web Markup Minifi... 0.9.7 324 Thursday, October 9, 2014
Web Markup Minifi... 0.9.6 198 Tuesday, September 30, 2014
Web Markup Minifi... 0.9.4 177 Saturday, September 27, 2014
Web Markup Minifi... 0.9.3 565 Sunday, September 14, 2014
Web Markup Minifi... 0.9.2 2,333 Thursday, September 11, 2014
Web Markup Minifi... 0.9.1 94 Wednesday, September 10, 2014
Web Markup Minifi... 0.9.0 118 Tuesday, September 9, 2014
Web Markup Minifi... 0.9.0-beta4 65 Monday, September 8, 2014
Web Markup Minifi... 0.9.0-beta3 136 Thursday, July 24, 2014
Web Markup Minifi... 0.9.0-beta2 62 Thursday, July 10, 2014
Web Markup Minifi... 0.9.0-beta1 534 Thursday, July 3, 2014
Web Markup Minifi... 0.8.21 1,104 Tuesday, May 27, 2014
Web Markup Minifi... 0.8.20 165 Sunday, May 18, 2014
Web Markup Minifi... 0.8.18 954 Saturday, March 15, 2014
Web Markup Minifi... 0.8.13 737 Tuesday, November 26, 2013
Web Markup Minifi... 0.8.11 350 Tuesday, September 17, 2013
Web Markup Minifi... 0.8.9 211 Wednesday, July 17, 2013
Web Markup Minifi... 0.8.7 130 Wednesday, June 5, 2013
Web Markup Minifi... 0.8.6 147 Thursday, May 30, 2013
Web Markup Minifi... 0.8.2 175 Monday, April 22, 2013
Web Markup Minifi... 0.8.1 116 Saturday, April 20, 2013
Web Markup Minifi... 0.8.0 94 Monday, April 15, 2013
Web Markup Minifi... 0.7.3-beta1 69 Tuesday, April 2, 2013
Web Markup Minifi... 0.7.2-alpha1 69 Thursday, March 28, 2013
Web Markup Minifi... 0.7.1-alpha1 65 Tuesday, March 26, 2013
Web Markup Minifi... 0.7.0-alpha1 66 Monday, March 25, 2013