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 #109

Merged
merged 1 commit into from
Feb 18, 2023
Merged

feat: compress HTML #109

merged 1 commit into from
Feb 18, 2023

Conversation

rpearce
Copy link
Owner

@rpearce rpearce commented Feb 18, 2023

This adds an HTML compressor/minifier that also ignores pre and textarea 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 6f2523c into main Feb 18, 2023
@rpearce rpearce deleted the feat/compress-html branch February 18, 2023 07:38
@rpearce rpearce restored the feat/compress-html branch February 18, 2023 07:42
@rpearce rpearce mentioned this pull request Feb 18, 2023
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