html-minifier

(★ 142)

Fast command-line HTML minifier — works on any HTML, with special support for Razor and Web Forms views. Parallel processing, safe preservation of <pre>/<code>/Knockout blocks, and easy MSBuild/CI integration.

  • .gitattributes
  • .gitignore
  • CHANGELOG.md
  • HtmlMinifier.sln
  • LICENSE.md
  • README.md
  • test_sample.html

# Installation Guide

1. Get the code
git clone https://github.com/deanhume/html-minifier

Downloads the entire project code from GitHub to your computer.

cd html-minifier

Moves into the project folder you just downloaded.

2. .NET

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • .NET SDK The SDK required for the dotnet command.
cd HtmlMinifier.Tests

This project's files live in a subfolder, so move into it first.

dotnet restore

Downloads the packages the project depends on.

dotnet run

Builds the project and runs it immediately.

After dotnet run, check the message or address shown in the terminal.
// repository documentation