Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: compress HTML #111

Merged
merged 4 commits into from
Feb 18, 2023
Merged

feat: compress HTML #111

merged 4 commits into from
Feb 18, 2023

Conversation

rpearce
Copy link
Owner

@rpearce rpearce commented Feb 18, 2023

(First reverted attempt: #109)

This adds an HTML compressor/minifier that also ignores pre, script, and textarea code blocks.

While I started this from scratch, the solution was influenced by (and almost identical to in some regards) the solution in jaspervdj/hakyll#956 as well as https://github.com/amuletml/website/blob/a2edab7151655b88d6617c6af746822f9579b4cb/site.hs#L232-L282.

If this ends up working out well, I'll backport it to https://github.com/rpearce/hakyll-nix-template/

@rpearce rpearce self-assigned this Feb 18, 2023
@rpearce rpearce merged commit 655e73d into main Feb 18, 2023
@rpearce rpearce deleted the feat/compress-html branch February 18, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant