A GitBook plugin that automatically minifies HTML output after the build process, using html-minifier under the hood. Current version 0.0.1 with no active releases. This plugin is specific to GitBook >1.x.x and provides configurable minification options such as collapsing whitespace, removing comments, and minifying inline CSS/JS. It is a straightforward integration for GitBook users seeking to reduce HTML file size, but lacks version updates and may have limited compatibility with modern GitBook versions.
npm install gitbook-plugin-html-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and configure the GitBook HTML minifier plugin via book.json with common options.
Switch to GitBook v3+ or use alternative minification approach (e.g., post-build script).
Check GitBook version compatibility; consider pinning to GitBook 1.x or use a different plugin.
Run 'npm install gitbook-plugin-html-minifier' which should install html-minifier as a dependency.
Ensure html-minifier is installed: 'npm install html-minifier' alongside the plugin.