# HTML Minifier ![Github Actions Status](https://github.com/deanhume/html-minifier/actions/workflows/dotnet-desktop.yml/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md) [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/14544/badge)](https://www.bestpractices.dev/projects/14544) A fast and efficient command-line tool to minify your HTML, Razor views, and Web Forms views. Reduce file sizes, improve load times, and deliver a better user experience by removing unnecessary whitespace and comments from your HTML files. ## ✨ Features - 🚀 **Fast Processing** - Minifies files and entire directory trees quickly with parallel processing - ⚡ **Parallel Processing** - Utilizes all CPU cores for maximum performance (4-8x faster on multi-core systems) - 📊 **Beautiful Reporting** - Comprehensive statistics with progress tracking and professional visual presentation - 📁 **Flexible Input** - Process individual files, specific folders, or entire directory structures - ⚙️ **Configurable** - Control line length and selectively disable minification features - 🔧 **Framework Support** - Special handling for Knockout.js, Angular, and other comment-dependent frameworks - 🎯 **Targeted Minification** - Choose what to minify: HTML comments, JavaScript comments, or Knockout comments - 🛡️ **Safe Minification** - Preserves content inside `
`, `