Javascript-based HTML compressor/minifier (with Node.js support)
HTMLMinifier is a highly configurable, JavaScript-based HTML minifier that is well-tested. It offers a variety of options for minifying HTML files. The tool has been tested against other minifiers and its performance compared in terms of file size reduction.
Grunt is a popular JavaScript task runner that automates repetitive tasks like minification, compilation, and testing, allowing developers to focus on writing code.