A TPack plugin that minifies HTML files using html-minifier. Version 2.9.0 is the latest stable release. It integrates seamlessly with TPack's pipe system, allowing developers to compress HTML output during build. The plugin exposes all html-minifier configuration options, such as collapseWhitespace, removeComments, and minifyJS. It is designed specifically for the TPack build tool, not a standalone minifier. Compared to direct use of html-minifier, this plugin provides a convenient TPack-compatible interface. Development appears to be low-frequency, with no recent updates.
npm install tpack-html-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates running tpack-html-minifier plugin on HTML files with common options.
Use tpack.plugin('tpack-html-minifier') in the pipe.Check the plugin source to understand forced options.
Consider local install per project.
Install tpack: npm install tpack, and require it: const tpack = require('tpack');npm install tpack-html-minifier (possibly with -g if globally installed).