mkdocs-minify-plugin
An MkDocs plugin to minify HTML, JS or CSS files prior to being written to disk
Decision gist · record as of 2026-08-14
Yes, if you use MkDocs and want to reduce output size without extra build steps. Install friction is low, dependencies are stable, and there are no known vulnerabilities. The dormant maintenance status is not a blocker for a simple, focused plugin, but be aware that bug fixes or feature updates are unlikely. Suitable for production documentation builds.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires MkDocs to be installed and an active mkdocs.yml configuration file in your project.
- Low friction install with a pure-Python wheel and four straightforward runtime dependencies.
- Maintenance is dormant—last release was 2024-01-29 and no commits since 2024-02-07—but the package is not archived and has no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this package freely in commercial or private projects with minimal restrictions.
last release 2024-01-29 (928 days) · last repo commit 2024-02-07 · 195 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,052,748 downloads/mo, #4,439 on PyPI
Alternatives
Verify before relying
pip install mkdocs-minify-plugin
In mkdocs.yml:
plugins:
- minify:
minify_html: true
minify_js: true
minify_css: true
js_files:
- path/to/file.js
css_files:
- path/to/file.css- Whether minification performance impact is measurable on large documentation sites.
- Compatibility with recent MkDocs versions beyond those listed in classifiers (3.10, 3.11).
What it is and what it does
mkdocs-minify-plugin is an MkDocs plugin that automatically minifies HTML, JavaScript, and CSS assets during the documentation build process. It delegates minification to three specialized libraries: htmlmin2 for HTML, jsmin for JavaScript, and csscompressor for CSS. The plugin integrates into MkDocs' build pipeline and can be configured to minify specific file types or all three, with options to add cache-busting hashes to file names and to customize HTML minification behavior.
The plugin is useful when you want to reduce the size of generated documentation without manually running separate minification tools. It supports glob patterns for file selection and can automatically update references to minified files in your HTML output. The package is stable but dormant—last updated in early 2024—and carries no known security vulnerabilities.
Use it for
- Reduce documentation site size and bandwidth for static MkDocs sites deployed to CDNs or hosting with bandwidth limits.
- Add cache-busting hashes to CSS and JS files to ensure browsers fetch fresh versions after updates.
- Automatically minify all HTML output from MkDocs without manual post-processing steps.
- Minify custom JavaScript and CSS files included in your documentation theme or configuration.
- Optimize documentation builds for low-bandwidth environments or mobile-first delivery.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use MkDocs and want to reduce output size without extra build steps.
Install friction is low, dependencies are stable, and there are no known vulnerabilities. The dormant maintenance status is not a blocker for a simple, focused plugin, but be aware that bug fixes or feature updates are unlikely. Suitable for production documentation builds.
Install
mkdocs-minify-plugin on PyPI
Before you install
Low friction install with a pure-Python wheel and four straightforward runtime dependencies. Maintenance is dormant—last release was 2024-01-29 and no commits since 2024-02-07—but the package is not archived and has no known vulnerabilities.
Requires MkDocs to be installed and an active mkdocs.yml configuration file in your project.
License in practice
MIT license is permissive; you can use this package freely in commercial or private projects with minimal restrictions.
Quickstart
pip install mkdocs-minify-plugin
In mkdocs.yml:
plugins:
- minify:
minify_html: true
minify_js: true
minify_css: true
js_files:
- path/to/file.js
css_files:
- path/to/file.css
Verify before relying
- Whether minification performance impact is measurable on large documentation sites.
- Compatibility with recent MkDocs versions beyond those listed in classifiers (3.10, 3.11).
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesmkdocshtmlmin2jsmincsscompressor |
| Maintenance | Dormant 928 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,052,748 / month, #4,439 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: mkdocs_minify_plugin-0.8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “mkdocs html minification”
- mkdocs-minify-pluginMinifies HTML, JavaScript, and CSS files in MkDocs documentation…
- minify-htmlMinifies HTML, JavaScript, and CSS in a single pass using a…
- django-htmlminMinifies HTML by removing whitespace and comments, reducing response…
Give your agent the search over MCP, or paste the wish link into any chat.
More Documentation packages
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
Sphinx generates professional documentation from reStructuredText source files, producing HTML, PDF, EPUB, and other formats with automatic cross-references, code highlighting, and hierarchical navigation.
Griffe extracts the complete structure and signatures of Python programs to generate API documentation or detect breaking changes in your project's public API.
Install it if you need to programmatically inspect Python code structure, generate API docs, or enforce API stability in CI.
A Sphinx extension that outputs documentation in serialized HTML formats (JSON and pickle) alongside standard HTML.
Alabaster is a clean, responsive Sphinx theme for documentation that requires Python 3.10 or newer and Sphinx 6.2 or newer.
A Sphinx extension that generates HTML help files from reStructuredText documentation source.
See also minify-html · Flask-Minify · jsmin · python-minifier · htmlmin2 · django-htmlmin · htmlmin · webassets · Flask-Assets · css-html-js-minify