# A new HTML minifier plug-in

**URL:** <https://talk.jekyllrb.com/t/a-new-html-minifier-plug-in/10202>\
**Category:** Share\
**Created:** [October 28, 2025, 12:33am UTC](https://talk.jekyllrb.com/t/a-new-html-minifier-plug-in/10202 "2025-10-28T00:33:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gandaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/gandaro/32/6429_2.png) [@gandaro](https://talk.jekyllrb.com/u/gandaro)\
**Post date:** [October 28, 2025, 12:33am UTC](https://talk.jekyllrb.com/t/a-new-html-minifier-plug-in/10202/1 "2025-10-28T00:33:48Z")

</div>

I created a new plug-in that minifies the HTML generated by Jekyll. It is available at [github.com/gandaro/jekyll-minify-html-rs](https://github.com/gandaro/jekyll-minify-html-rs). The README on that page explains how you can install it.

The plug-in uses the [minify-html](https://crates.io/crates/minify-html) package that was written in Rust.

On my Jekyll site the minifier reduced the uncompressed HTML file size by about 50%. However that is not a fair metric. If your HTTP server is set up correctly, it will apply a lossless compression algorithm on the transmitted data, for example Brotli, which will reduce the relative savings of the minifier a lot. In my case, the savings for Brotli-compressed HTML were between 14 and 18 %, so still significant.

I hope that some of you will find it useful.

The source code for the plug-in can also be viewed as a minimal example of a Jekyll plug-in, maybe it is useful for someone who just wants to see how to create a simple plug-in.

---

<div class="post-metadata">

**Author:** ![sarataylor](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@sarataylor](https://talk.jekyllrb.com/u/sarataylor)\
**Post date:** [December 19, 2025, 11:09am UTC](https://talk.jekyllrb.com/t/a-new-html-minifier-plug-in/10202/2 "2025-12-19T11:09:04Z")

</div>

This looks useful. I appreciate you explaining the real impact with compression.
