ZetaProducerHtmlCompressor

A .NET port of Google’s htmlcompressor library to minify HTML source code. This is the release of the original porter.


Keywords
html, compression, c-sharp, nuget
License
MIT
Install
Install-Package ZetaProducerHtmlCompressor -Version 15.2.0

Documentation

Zeta Producer Html Compressor

A .NET port of Google’s HtmlCompressor library to minify HTML source code.

Build state

Introduction

This project is a port of Google's Java HtmlCompressor library to remove extra whitespaces, comments and other unneeded characters without breaking the content structure.

Usage

Simply include the .NET Standard NuGet package or the .NET Full Framework NuGet package into your project.

See "Minify HTML with inline CSS/JavaScript for MVC C# as a filter/attribute" as an example implementation (includes CSS and JavaScript minification using System.Web.Optimization bundling library).

History

  • 2019-10-17 - Added .NET Standard package.
  • 2015-10-18 - First release to GitHub.
  • 2012-12-03 - First release. (Being used in our CMS Zeta Producer ever since).