DocPad plugin for minifying HTML output using html-minifier, version 2.4.3 (last released 2021). Designed exclusively for DocPad v6.x projects. It provides per-template YAML front-matter control and environment-aware configuration (e.g., disabled in development). No active maintenance since 2021 – check compatibility before use.
npm install docpad-plugin-htmlminNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to enable per-template minification via YAML front-matter and global configuration in DocPad.
Use DocPad v6.x or switch to a different HTML minification approach for newer DocPad versions.
Migrate to an alternative static site generator or handle HTML minification outside DocPad.
Ensure front-matter key is exactly 'htmlmin' and value is a boolean or configuration object.
Set 'enabled: true' in the development environment configuration or remove the environment block.
Run 'docpad install htmlmin' to install the plugin via DocPad's package manager.
Ensure the plugin is installed and its name matches exactly: 'htmlmin'.
Wrap plugin config inside { plugins: { htmlmin: {...} } } in your DocPad config file.