A powerful tool to optimize HTML
- Adds line break to InlineJS.
- It can automagically minify inline CSS, JS.
- Removes <!--prettier-ignore--> from HTML.
- It speeds up website by reducing the HTML size.
- It compiles regex at runtime. So it's blazing fast.
- Its mostly based on C ( gzip ) and Rust ( minify-html ) libraries.
- Significantly lower bytes transferred when working with frameworks like AlpineJs ( Almost fully working & Please open a issue in the Issue Tracker if you encounter any bug ) & Petite Vue.
- Is very customizable. ( You can configure lower level minify-html rust bindings and also the lower level python bindings when calling minify )
- Adds unnecessary ';;' in HTML. ( If you know any regex to fix this please put a pull request )
- minify-html
- Python 3 ( Should work with all version? )
- Brotli ( or BrotliPy ) | ( Optional )
- ZSTD ( Optional )
Isn't supperted by modern browsers
- django-strip-whitespace
- flask-strip-whitespace
- fastapi-strip-whitespace ( Doesn't exist 😛 )
If you like this project add a star. If you have problems or suggestions please put them in the Issue Tracker. If you like to add features. Fork this repo and submit a Pull Request. 😛
You tell me. If i have free time, I will implement it.