Skip to main content
WebMarkupMin.Core package icon

WebMarkupMin.Core

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://github.com/microsoft/ajaxmin), 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/trullock/NUglify). Also supports minification of views of popular JavaScript template engines: KnockoutJS, Kendo UI MVVM and AngularJS 1.X.

Total Downloads
9.7M
9,741,172
Published
Jun 26, 2024
Latest stable version

Install

.NET CLI
dotnet add package WebMarkupMin.Core --version 2.16.2
Package Manager Console
Install-Package WebMarkupMin.Core -Version 2.16.2
PackageReference
<PackageReference Include="WebMarkupMin.Core" Version="2.16.2" />

Frameworks

.NETFramework4.0-Client .NETFramework4.5 .NETStandard1.3 .NETStandard2.0 .NETStandard2.1

Dependencies

AdvancedStringBuilder
.NETFramework4.0-Client
[0.1.1, )
[0.1.2, )
AdvancedStringBuilder
.NETFramework4.5
[0.1.1, )
System.Buffers
.NETFramework4.5
[4.0.0, )
AdvancedStringBuilder
.NETStandard1.3
[0.1.1, )
NETStandard.Library
.NETStandard1.3
[1.6.0, )
System.Buffers
.NETStandard1.3
[4.0.0, )
AdvancedStringBuilder
.NETStandard2.0
[0.1.1, )
System.Buffers
.NETStandard2.0
[4.4.0, )
AdvancedStringBuilder
.NETStandard2.1
[0.1.1, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.