Pelican plugin adding rjsmin as a template filter to handle inline scripts. No bundling or dead code elimination is performed.
This plugin can be installed via:
python -m pip install git+https://github.com/boidolr/pelican-jsmin.git@main
As long as you have not explicitly added a PLUGINS
setting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must add jsmin
to your existing PLUGINS
list. For more information, please see the How to Use Plugins documentation.
<script>
{%- filter jsmin %}
{% include "script.js" %}
{% endfilter -%}
</script>
This project is licensed under the MIT license.