MkDocs plugin for minification using minify-html, an extremely fast and smart HTML + JS + CSS minifier.
HEALTH ? 100 / Healthy
MkDocs plugin for minification using minify-html, an extremely fast and smart HTML + JS + CSS minifier.
// readme
ProperDocs and MkDocs plugin that minifies the built HTML pages, including inline CSS and JS, with minify-html.
MkDocs is no longer maintained, and its last release, 1.6.1, came out in August 2024. MkDocs 2.0, now in development, has no plugin system, so this plugin will not run on it. ProperDocs continues MkDocs 1.x. It reads mkdocs.yml and runs existing plugins without changes, this one included. This plugin still supports MkDocs 1.x as well.
Install:
uv add --dev mkdocs-minify-html-plugin
# or
pip install -U mkdocs-minify-html-plugin
Activate in properdocs.yml or mkdocs.yml:
plugins:
- search
- minify_html
The options are the fields of minify-htmlโs Cfg. The defaults aim for the smallest output that stays spec-compliant:
plugins:
- search
-โฆ