feat: add configurable html minification #23

Merged
eleith merged 5 commits from gemini/feat/minify-html into main 2025-07-26 15:37:57 +00:00
Owner

This change introduces HTML minification to reduce the size of email attachments, which
is particularly beneficial for digests with a large number of entries.

The minification is enabled by default and can be configured via a new digest.compress
option in config.yaml.

Additionally, the preview-html script now supports a -minify flag (e.g., make
preview-html minify=false) to allow for easy testing of both minified and non-minified
output.

This implementation uses the tdewolff/minify library to handle HTML, CSS, and
JavaScript minification safely and efficiently.

This change introduces HTML minification to reduce the size of email attachments, which is particularly beneficial for digests with a large number of entries. The minification is enabled by default and can be configured via a new digest.compress option in config.yaml. Additionally, the preview-html script now supports a -minify flag (e.g., make preview-html minify=false) to allow for easy testing of both minified and non-minified output. This implementation uses the tdewolff/minify library to handle HTML, CSS, and JavaScript minification safely and efficiently.
eleith added 5 commits 2025-07-26 15:37:47 +00:00
eleith merged commit 139b488450 into main 2025-07-26 15:37:57 +00:00
eleith deleted branch gemini/feat/minify-html 2025-07-26 15:37:57 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/miniflux-digest#23