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

Minify html outputs #8

Open
mundanevision20 opened this issue Jul 16, 2023 · 0 comments
Open

Minify html outputs #8

mundanevision20 opened this issue Jul 16, 2023 · 0 comments

Comments

@mundanevision20
Copy link

mundanevision20 commented Jul 16, 2023

Hi @roberth-k,

I was surprised to discover how quick and easy the size of the docset can be reduced when minifying the html contents.

I was able to reduce the size of docset from ca. 130mb to ca. 123mb by calling minify-html and parallel with:

find .build/1.5.2.230709/Terraform.docset/Contents/Resources/Documents/ -type f -regex '.*\.\(htm\|html\)$' | parallel ./minify-html --output {} --keep-closing-tags --minify-css {} \; || true

While this was just a first test I think it's definitely worth considering to integrate this into the ci workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant