html-minifier
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.
File Explorer
Download Latest Version (.zip)- SKILL.md
- dotnet-desktop.yml
- copilot-instructions.md
- db.lock
- storage.ide
- storage.ide-shm
- storage.ide-wal
- 000-0000.testlog
- testlog.manifest
- 000-0000.testlog
- testlog.manifest
- settings.json
- reporting.png
- index.html
- 65K.txt
- 65KResult.txt
- Arabic.txt
- ArabicResult.txt
- Comments.txt
- CommentsResult.txt
- Encoding.txt
- GithubIssue10.txt
- GithubIssue10Result.txt
- GithubIssue13.txt
- GithubIssue13Result.txt
- GithubIssue54.txt
- GithubIssue54Result.txt
- LanguageSpecificCharacters.txt
- LanguageSpecificCharactersResult.txt
- ModelList.txt
- ModelListResult.txt
- Standard.txt
- StandardResult.txt
- AssemblyInfo.cs
- app.config
- ArgumentsTests.cs
- DataHelpers.cs
- EdgeCaseTests.cs
- FileExtensionTests.cs
- HelpAndVersionTests.cs
- HtmlMinifier.Tests.csproj
- MinificationTests.cs
- packages.config
- PerformanceBenchmarkTests.cs
- HtmlMinifier.exe
- HtmlMinifier.exe.config
- AssemblyInfo.cs
- App.config
- ConsoleReporter.cs
- EncodingHelper.cs
- Features.cs
- HtmlMinifier.csproj
- Program.cs
- StreamReaderExtension.cs
- StringExtension.cs
- .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 RecommendedPrerequisites
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
Was this content helpful?
(0 ratings)
