![]() |
VOOZH | about |
dotnet add package WebMarkupMin.Core --version 2.21.0
NuGet\Install-Package WebMarkupMin.Core -Version 2.21.0
<PackageReference Include="WebMarkupMin.Core" Version="2.21.0" />
<PackageVersion Include="WebMarkupMin.Core" Version="2.21.0" />Directory.Packages.props
<PackageReference Include="WebMarkupMin.Core" />Project file
paket add WebMarkupMin.Core --version 2.21.0
#r "nuget: WebMarkupMin.Core, 2.21.0"
#:package WebMarkupMin.Core@2.21.0
#addin nuget:?package=WebMarkupMin.Core&version=2.21.0Install as a Cake Addin
#tool nuget:?package=WebMarkupMin.Core&version=2.21.0Install as a Cake Tool
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 (written in JavaScript) and Sergiy Kovalchuk's 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 and built-in CSS minifier based on the Mads Kristensen's Efficient stylesheet minifier.
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), WebMarkupMin.Yui (contains minifier-adapters for the YUI Compressor for .NET) and WebMarkupMin.NUglify (contains minifier-adapters for the NUglify).
Also supports minification of views of popular JavaScript template engines: KnockoutJS, Kendo UI MVVM and AngularJS 1.X.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp1.0 netcoreapp1.0 was computed. netcoreapp1.1 netcoreapp1.1 was computed. netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard1.3 netstandard1.3 is compatible. netstandard1.4 netstandard1.4 was computed. netstandard1.5 netstandard1.5 was computed. netstandard1.6 netstandard1.6 was computed. netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net40-client net40-client is compatible. net45 net45 is compatible. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen30 tizen30 was computed. tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Universal Windows Platform | uap uap was computed. uap10.0 uap10.0 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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. |
|
|
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. |
|
|
Statiq.Minification
Statiq is a configurable static content generation framework. This library provides support for minification of HTML, CSS and JavaScript content. |
|
|
AngularTemplates.Compile
ASP.NET MVC bundle and MsBuild task that combine multiple AngularJS templates into one file. |
|
|
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. |
Showing the top 12 popular GitHub repositories that depend on WebMarkupMin.Core:
| Repository | Stars |
|---|---|
|
Tyrrrz/DiscordChatExporter
Saves Discord chat logs to a file
|
|
|
ErsatzTV/legacy
Open-source platform that transforms your personal media library into live, custom TV channels.
|
|
|
grandnode/grandnode
Open source, headless, multi-tenant eCommerce platform built with .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, Vue.js.
|
|
|
statiqdev/Statiq
Statiq is a flexible static site generator written in .NET.
|
|
|
madskristensen/WebEssentials2013
Visual Studio extension
|
|
|
madskristensen/MiniBlog
A minimal blog engine using Razor Web Pages
|
|
|
anobaka/Bakabase
A local media manager for all types of files. 二次元老司机专用的本地媒体文件管理器,支持管理和处理音视频、本子、图集、小说、哔哩哔哩视频、游戏甚至mod等各类资源,集成steam、DLsite、exhentai等平台。
|
|
|
statiqdev/Statiq.Framework
A flexible and extensible static content generation framework for .NET.
|
|
|
trullock/NUglify
NUglify is a HTML, JavaScript and CSS minification Library for .NET (fork of AjaxMin + new features)
|
|
|
madskristensen/WebEssentials2015
A Visual Studio extension for web developers
|
|
|
ZarehD/AspNetStatic
Transform ASP.NET Core into a static site generator.
|
|
|
Wyamio/Wyam
A modular static content and static site generator.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.21.0 | 80,004 | 3/18/2026 |
| 2.20.2 | 46,707 | 2/26/2026 |
| 2.20.1 | 61,873 | 12/15/2025 |
| 2.20.0 | 99,933 | 11/13/2025 |
| 2.19.1 | 23,012 | 10/31/2025 |
| 2.19.0 | 328,435 | 5/18/2025 |
| 2.17.0 | 982,999 | 8/6/2024 |
| 2.16.2 | 39,711 | 6/26/2024 |
| 2.16.1 | 47,541 | 6/24/2024 |
| 2.16.0 | 582,181 | 2/28/2024 |
| 2.14.0 | 638,156 | 5/24/2023 |
| 2.13.9 | 111,887 | 4/3/2023 |
| 2.13.9-preview1 | 4,112 | 3/22/2023 |
| 2.13.8 | 142,255 | 2/9/2023 |
| 2.13.7 | 53,985 | 1/28/2023 |
| 2.13.6 | 166,194 | 1/26/2023 |
| 2.13.0 | 469,077 | 11/4/2022 |
| 2.12.0 | 222,113 | 8/22/2022 |
| 2.9.0 | 1,712,814 | 12/1/2020 |
| 2.8.6 | 232,548 | 7/3/2020 |
1. It is now possible to configure the Mads Kristensen's CSS Minifier;
2. In configuration settings of the Mads Kristensen's CSS Minifier was added three properties - `RemoveRedundantSelectors` (default `false`), `RemoveTrailingSemicolons` (default `true`) and `RemoveUnitsFromZeroValues` (default `false`).