HtmlMinification 1.0.0
dotnet add package HtmlMinification --version 1.0.0
NuGet\Install-Package HtmlMinification -Version 1.0.0
<PackageReference Include="HtmlMinification" Version="1.0.0" />
paket add HtmlMinification --version 1.0.0
#r "nuget: HtmlMinification, 1.0.0"
// Install HtmlMinification as a Cake Addin #addin nuget:?package=HtmlMinification&version=1.0.0 // Install HtmlMinification as a Cake Tool #tool nuget:?package=HtmlMinification&version=1.0.0
HTML Minification middleware
HTML minification middleware is a process of removing unnecessary or redundant data from HTML without affecting how the resource is processed by the browser. This can include removing code comments and formatting, removing unused code, using shorter variable and function names, and so on. Minifying HTML can help reduce the size of web pages, resulting in faster page load times and improved user experience.
ASP.NET Core 3.x ~ 7.x
Remove All whiteSpace from rendered html
New update: Fixed Image 500 error.
Usage:
in Startup.cs Or Program.cs
app.UseHtmlMinification(); // <-- call it before StaticFiles middleware
app.UseStaticFiles();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 182 | 4/15/2023 |
HTML minification middleware is a process of removing unnecessary or redundant data from HTML without affecting how the resource is processed by the browser. This can include removing code comments and formatting, removing unused code, using shorter variable and function names, and so on. Minifying HTML can help reduce the size of web pages, resulting in faster page load times and improved user experience.