WebMarkupMin.Core 2.16.2 (original) (raw)

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed.
.NET Core netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed.
.NET Standard netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 is compatible.
.NET Framework net40-client is compatible. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed.
MonoAndroid monoandroid was computed.
MonoMac monomac was computed.
MonoTouch monotouch was computed.
Tizen tizen30 was computed. tizen40 was computed. tizen60 was computed.
Universal Windows Platform uap was computed. uap10.0 was computed.
Xamarin.iOS xamarinios was computed.
Xamarin.Mac xamarinmac was computed.
Xamarin.TVOS xamarintvos was computed.
Xamarin.WatchOS xamarinwatchos was computed.

NuGet packages (34)

Showing the top 5 NuGet packages that depend on WebMarkupMin.Core:

Package Downloads
WebMarkupMin.AspNet.Common WebMarkupMin.AspNet.Common is auxiliary package, that contains classes and interfaces for all ASP.NET extensions. 5.3M
WebMarkupMin.NUglify WebMarkupMin.NUglify contains 2 minifier-adapters: `NUglifyCssMinifier` (for minification of CSS code) and `NUglifyJsMinifier` (for minification of JS code). These adapters perform minification using the NUglify. 2.3M
Statiq.Minification Statiq is a configurable static content generation framework. This library provides support for minification of HTML, CSS and JavaScript content. 320.0K
AngularTemplates.Compile ASP.NET MVC bundle and MsBuild task that combine multiple AngularJS templates into one file. 186.4K
Wyam.Minification Wyam is a simple to use, highly modular, and extremely configurable static content generator. This library provides support for minification of HTML, CSS and JavaScript content. 149.1K

GitHub repositories (12)

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

Repository Stars
Tyrrrz/DiscordChatExporter Saves Discord chat logs to a file 11.4K
ErsatzTV/legacy Open-source platform that transforms your personal media library into live, custom TV channels. 2.8K
grandnode/grandnode Open source, headless, multi-tenant eCommerce platform built with .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, Vue.js. 1.9K
statiqdev/Statiq Statiq is a flexible static site generator written in .NET. 1.7K
madskristensen/WebEssentials2013 Visual Studio extension 943
madskristensen/MiniBlog A minimal blog engine using Razor Web Pages 922
anobaka/Bakabase A local media manager for all types of files. 二次元老司机专用的本地媒体文件管理器,支持管理和处理音视频、本子、图集、小说、哔哩哔哩视频、游戏甚至mod等各类资源,集成steam、DLsite、exhentai等平台。 525
statiqdev/Statiq.Framework A flexible and extensible static content generation framework for .NET. 438
trullock/NUglify NUglify is a HTML, JavaScript and CSS minification Library for .NET (fork of AjaxMin + new features) 434
madskristensen/WebEssentials2015 A Visual Studio extension for web developers 299
ZarehD/AspNetStatic Transform ASP.NET Core into a static site generator. 171
Wyamio/Wyam A modular static content and static site generator. 146

Include prerelease

Include vulnerable

Include deprecated

Version Downloads Last Updated
2.21.0 75,477 3/18/2026
2.20.2 46,144 2/26/2026
2.20.1 61,315 12/15/2025
2.20.0 98,813 11/13/2025
2.19.1 22,901 10/31/2025
2.19.0 325,296 5/18/2025
2.17.0 978,396 8/6/2024
2.16.2 39,644 6/26/2024
2.16.1 47,512 6/24/2024
2.16.0 580,183 2/28/2024
2.14.0 636,727 5/24/2023
2.13.9 111,777 4/3/2023
2.13.9-preview1 4,112 3/22/2023
2.13.8 142,163 2/9/2023
2.13.7 53,873 1/28/2023
2.13.6 166,093 1/26/2023
2.13.0 468,252 11/4/2022
2.12.0 221,829 8/22/2022
2.9.0 1,711,569 12/1/2020
2.8.6 232,434 7/3/2020

Blazor streaming markers (``, `` and ``) are no longer removed.