-
Notifications
You must be signed in to change notification settings - Fork 511
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: improve public asset compression #466
Conversation
Codecov Report
@@ Coverage Diff @@
## main #466 +/- ##
==========================================
- Coverage 63.43% 63.26% -0.17%
==========================================
Files 54 54
Lines 3569 3607 +38
Branches 378 382 +4
==========================================
+ Hits 2264 2282 +18
- Misses 1294 1314 +20
Partials 11 11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* Improve compressPublicAssets * Change sync to async compression * small refactors * refactor callback handling Co-authored-by: Pooya Parsa <pooya@pi0.io>
π Linked issue
β Type of change
π Description
This PR allows specifying the compression algorithm in the
compressPublicAssets
option.All public assets are no longer compressed, but only selected types are. Since some file types are already internally compressed and double compression is just a waste of time and energy.
The compression level has also been set to maximum quality, which makes compressed files smaller in size and therefore faster to download.
π Checklist