You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.
Options
minify_html:
Defaults to False.
Sets whether HTML files should be minified.
minify_js:
Defaults to False.
Sets whether JS files should be minified.
If set to True, you must specify the JS to be minified files using js_files (see below).
minify_css:
Defaults to False.
Sets whether CSS files should be minified.
If set to True, you must specify the CSS to be minified files using css_files (see below).
Sets whether a hash should be added to the JS and CSS file names. This ensures that the browser always loads the latest version of the files instead of loading them from the cache.
If set to True, you must specify the files using js_files or css_files (see below).
js_files:
Defaults to None.
List of JS files to be minified.
The plugin will generate minified versions of these files and save them as .min.js in the output directory.
css_files:
Defaults to None.
List of CSS files to be minified.
The plugin will generate minified versions of these files and save them as .min.css in the output directory.
Note: When using minify_js or minify_css, you don't have to modify the extra_javascript or extra_css entries
in your mkdocs.yml file. The plugins automatically takes care of that.
Both minify_js and minify_css support the use of globs (e.g. **/*.css).
About
A mkdocs plugin to minify the HTML of a page before it is written to disk.