34,453

Downloads

617

Downloads of v 2.1.0

27

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 288 Tuesday, July 12, 2016
Web Markup Minifi... 2.0.1 93 Saturday, July 9, 2016
Web Markup Minifi... 2.0.0 279 Tuesday, June 28, 2016
Web Markup Minifi... 2.0.0-rc9 73 Monday, June 13, 2016
Web Markup Minifi... 2.0.0-rc8 164 Thursday, May 19, 2016
Web Markup Minifi... 2.0.0-rc7 114 Tuesday, May 10, 2016
Web Markup Minifi... 2.0.0-rc6 126 Saturday, April 2, 2016
Web Markup Minifi... 2.0.0-rc2 748 Saturday, December 5, 2015
Web Markup Minifi... 2.0.0-rc1 543 Friday, November 20, 2015
Web Markup Minifi... 2.0.0-beta5 230 Saturday, October 17, 2015
Web Markup Minifi... 2.0.0-beta4 450 Friday, September 4, 2015
Web Markup Minifi... 2.0.0-beta2 83 Monday, August 24, 2015
Web Markup Minifi... 2.0.0-beta1 48 Thursday, August 13, 2015
Web Markup Minifi... 2.0.0-alpha2 51 Friday, July 31, 2015
Web Markup Minifi... 2.0.0-alpha1 57 Friday, July 17, 2015
Web Markup Minifi... 1.1.5 70 Saturday, July 9, 2016
Web Markup Minifi... 1.1.4 221 Wednesday, June 29, 2016
Web Markup Minifi... 1.1.3 527 Tuesday, June 14, 2016
Web Markup Minifi... 1.1.2 43 Monday, June 13, 2016
Web Markup Minifi... 1.1.0 1,373 Tuesday, April 5, 2016
Web Markup Minifi... 1.0.1 4,247 Sunday, December 6, 2015
Web Markup Minifi... 1.0.0 4,615 Wednesday, August 26, 2015
Web Markup Minifi... 0.9.12 4,342 Wednesday, April 1, 2015
Web Markup Minifi... 0.9.11 1,919 Saturday, January 31, 2015
Web Markup Minifi... 0.9.9 1,016 Tuesday, November 25, 2014
Web Markup Minifi... 0.9.8 2,860 Sunday, October 26, 2014
Web Markup Minifi... 0.9.7 328 Thursday, October 9, 2014
Web Markup Minifi... 0.9.6 202 Tuesday, September 30, 2014
Web Markup Minifi... 0.9.4 181 Saturday, September 27, 2014
Web Markup Minifi... 0.9.3 576 Sunday, September 14, 2014
Web Markup Minifi... 0.9.2 2,397 Thursday, September 11, 2014
Web Markup Minifi... 0.9.1 98 Wednesday, September 10, 2014
Web Markup Minifi... 0.9.0 122 Tuesday, September 9, 2014
Web Markup Minifi... 0.9.0-beta4 69 Monday, September 8, 2014
Web Markup Minifi... 0.9.0-beta3 140 Thursday, July 24, 2014
Web Markup Minifi... 0.9.0-beta2 66 Thursday, July 10, 2014
Web Markup Minifi... 0.9.0-beta1 538 Thursday, July 3, 2014
Web Markup Minifi... 0.8.21 1,118 Tuesday, May 27, 2014
Web Markup Minifi... 0.8.20 169 Sunday, May 18, 2014
Web Markup Minifi... 0.8.18 967 Saturday, March 15, 2014
Web Markup Minifi... 0.8.13 744 Tuesday, November 26, 2013
Web Markup Minifi... 0.8.11 357 Tuesday, September 17, 2013
Web Markup Minifi... 0.8.9 215 Wednesday, July 17, 2013
Web Markup Minifi... 0.8.7 134 Wednesday, June 5, 2013
Web Markup Minifi... 0.8.6 151 Thursday, May 30, 2013
Web Markup Minifi... 0.8.2 180 Monday, April 22, 2013
Web Markup Minifi... 0.8.1 120 Saturday, April 20, 2013
Web Markup Minifi... 0.8.0 98 Monday, April 15, 2013
Web Markup Minifi... 0.7.3-beta1 73 Tuesday, April 2, 2013
Web Markup Minifi... 0.7.2-alpha1 73 Thursday, March 28, 2013
Web Markup Minifi... 0.7.1-alpha1 69 Tuesday, March 26, 2013
Web Markup Minifi... 0.7.0-alpha1 71 Monday, March 25, 2013