metalsmith-optimize-html

JSON →
library 0.10.0 ·javascript
verified Jun 4, 2026

A Metalsmith plugin for optimizing and minifying HTML files. Current stable version: 0.10.0. Release cadence: irregular, maintained by GitHub user wernerglinka. Key differentiators: single-pass tokenizer for high performance (300x improvement over regex-based alternatives), modular architecture with fine-grained control over optimizations, dual ESM/CommonJS support, built from scratch to replace the abandoned metalsmith-html-minifier with modern JavaScript practices and minimal dependencies.