Content minification for the Pelican site generator. This plugin can compress HTML & CSS files as well as inline CSS and JavaScript in HTML files.
pelican-minification depends on the following packages that will be installed automatically, see below:
Install pelican-minification into your Python interpreter using pip:
pip install pelican-minification
Then add the plugin to the PLUGINS
setting within your pelicanconf.py:
PLUGINS = [
...
'pelican.plugins.minification',
]
Upon calling the pelican command now, all HTML and CSS files are compressed automatically;
including inline JavaScript and CSS rules in <script>
and <style>
tags.