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

Minimize output #395

Open
mothsART opened this issue Jul 7, 2024 · 3 comments
Open

Minimize output #395

mothsART opened this issue Jul 7, 2024 · 3 comments

Comments

@mothsART
Copy link

mothsART commented Jul 7, 2024

Output could be really fat.

Why not propose an option for optimize a little :

  • html
  • css
  • javascript
  • svg
  • pictures
  • etc

There's a lot of tool in Rust who do that :

  • html-minifier
  • lightingcss
  • swc
@mi2ebi
Copy link

mi2ebi commented Sep 17, 2024

or, minimize the inputs, that way you also shave off whitespace in e.g. linked stylesheets

@edent
Copy link

edent commented Oct 18, 2024

Just as a comparison, I used both Monolith and SingleFile to download the same page.

  • Monolith: 1.7MB
  • SingleFile: 300KB

Obviously, that varies a little between pages. But Monolith's files are generally a lot larger than SingleFile's files.

@snshn
Copy link
Member

snshn commented Dec 2, 2024

I wouldn't want to over-engineer it for the sake of saving a little bit of disk space.
It'll also likely decrease the performance.
But doing this optionally, especially if they could decrease files size over 5x, that sounds like it'll be worth it. I'll look into this more, at least for media assets.

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

4 participants