WebMarkupMin.Core 2.5.8

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 HTML Minifier (https://github.com/kangax/html-minifier/) (written in JavaScript) and Sergiy Kovalchuk's HtmlCompressor (https://github.com/serg472/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 (https://github.com/douglascrockford/JSMin) and built-in CSS minifier based on the Mads Kristensen's Efficient stylesheet minifier (https://madskristensen.net/blog/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 - https://ajaxmin.codeplex.com/), WebMarkupMin.Yui (contains minifier-adapters for YUI Compressor for .Net - https://github.com/YUICompressor-NET/YUICompressor.NET) and WebMarkupMin.NUglify (contains minifier-adapters for the NUglify - https://github.com/xoofx/NUglify).

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

There is a newer version of this package available.
See the version list below for details.
Install-Package WebMarkupMin.Core -Version 2.5.8
dotnet add package WebMarkupMin.Core --version 2.5.8
<PackageReference Include="WebMarkupMin.Core" Version="2.5.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebMarkupMin.Core --version 2.5.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

1. Now CDATA sections are not removed from scripts and styles if they are inside XML-based tags;
2. Added the ability to specify a custom short DOCTYPE (e.g. `<!DOCTYPE HTML>`, `<!doctype html>`, or `<!doctypehtml>`);
3. In HTML minification settings was added one new property - `CustomShortDoctype` (default empty string);
4. Improved performance of HTML/XHTML minification.

  • .NETFramework 4.0 Client

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.3

  • .NETStandard 2.0

    • No dependencies.

Showing the top 6 GitHub repositories that depend on WebMarkupMin.Core:

Repository Stars
Wyamio/Wyam
A modular static content and static site generator.
madskristensen/WebEssentials2013
Visual Studio extension
madskristensen/MiniBlog
A minimal blog engine using Razor Web Pages
grandnode/grandnode
Free and Open Source Ecommerce Shopping Cart solution based on ASP.NET CORE and MongoDB
madskristensen/WebEssentials2015
A Visual Studio extension for web developers
xoofx/NUglify
NUglify is a HTML, JavaScript and CSS minification Library for .NET (fork of AjaxMin + new features)

Version History

Version Downloads Last updated
2.6.0 1,608 7/30/2019
2.5.8 5,148 5/29/2019
2.5.7 5,155 4/15/2019
2.5.6 2,820 3/7/2019
2.5.5 38,430 11/6/2018
2.5.4 1,375 10/24/2018
2.5.3 707 10/13/2018
2.5.1 6,466 8/16/2018
2.5.0 47,183 8/13/2018
2.4.5 3,225 7/9/2018
2.4.0 130,685 5/7/2017
2.3.0 22,919 3/7/2017
2.2.4 28,483 11/26/2016
2.2.3 366 11/23/2016
2.2.2 3,601 11/11/2016
2.2.0 2,880 9/27/2016
2.1.0 5,768 7/19/2016
2.0.2 2,078 7/12/2016
2.0.1 471 7/9/2016
2.0.0 1,229 6/28/2016
2.0.0-rc9 394 6/13/2016
2.0.0-rc8 796 5/19/2016
2.0.0-rc7 690 5/10/2016
2.0.0-rc6 456 4/2/2016
2.0.0-rc2 1,557 12/5/2015
2.0.0-rc1 1,758 11/20/2015
2.0.0-beta5 583 10/17/2015
2.0.0-beta4 909 9/4/2015
2.0.0-beta2 398 8/24/2015
2.0.0-beta1 505 8/13/2015
2.0.0-alpha2 380 7/31/2015
2.0.0-alpha1 378 7/17/2015
1.1.5 3,005 7/9/2016
1.1.4 528 6/29/2016
1.1.3 3,886 6/14/2016
1.1.2 333 6/13/2016
1.1.0 5,945 4/5/2016
1.0.1 9,839 12/6/2015
1.0.0 12,644 8/26/2015
0.9.12 9,126 4/1/2015
0.9.11 3,590 1/31/2015
0.9.9 1,539 11/25/2014
0.9.8 3,529 10/26/2014
0.9.7 650 10/9/2014
0.9.6 531 9/30/2014
0.9.4 486 9/27/2014
0.9.3 954 9/14/2014
0.9.2 4,684 9/11/2014
0.9.1 389 9/10/2014
0.9.0 419 9/9/2014
0.9.0-beta4 342 9/8/2014
0.9.0-beta3 406 7/24/2014
0.9.0-beta2 384 7/10/2014
0.9.0-beta1 844 7/3/2014
0.8.21 1,689 5/27/2014
0.8.20 493 5/18/2014
0.8.18 1,370 3/15/2014
0.8.13 1,352 11/26/2013
0.8.11 748 9/17/2013
0.8.9 649 7/17/2013
0.8.7 457 6/5/2013
0.8.6 509 5/30/2013
0.8.2 1,136 4/22/2013
0.8.1 705 4/20/2013
0.8.0 433 4/15/2013
0.7.3-beta1 382 4/2/2013
0.7.2-alpha1 414 3/28/2013
0.7.1-alpha1 381 3/26/2013
0.7.0-alpha1 384 3/25/2013