MkDocs plugin for minification using minify-html, an extremely fast HTML + JS + CSS minifier
Project description
mkdocs-minify-html-plugin
MkDocs plugin for minification using minify-html, an extremely fast HTML + JS + CSS minifier.
Usage
Install:
python -m pip install -U mkdocs-minify-html-plugin
Activate in mkdocs.yml
:
plugins:
- search
- minify_html
Options
- do_not_minify_doctype = True
- ensure_spec_compliant_unquoted_attribute_values = True
- keep_closing_tags = False
- keep_html_and_head_opening_tags = False
- keep_spaces_between_attributes = True
- keep_comments = False
- minify_css = True
- minify_js = True
- remove_bangs = False
- remove_processing_instructions = False
Example:
plugins:
- search
- minify_html:
do_not_minify_doctype: false
ensure_spec_compliant_unquoted_attribute_values: false
keep_spaces_between_attributes: false
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mkdocs_minify_html_plugin-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 926082d8df480bc224bba7ac414b9280e198f8ddef718bb49735e6b1bd4ba31d |
|
MD5 | b6459197f87f1427737562fdc96a52a4 |
|
BLAKE2b-256 | 7b5cb13c7f31549349897063b8b2cf825e3a0ef9507acae155bf186037a4543f |
Close
Hashes for mkdocs_minify_html_plugin-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8730ca027adc7d226397e22bf27995b64461db0d8b980552d933c9e9d625aca7 |
|
MD5 | 2800851e446925c1c0075cce311f8cd9 |
|
BLAKE2b-256 | 8fc6c4b9c97aae142c062007e7fd1676a0554ebf8b1686ceb77535ecb9cdba32 |