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

Compress Wasm files #2

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Compress Wasm files #2

merged 1 commit into from
Dec 4, 2023

Conversation

paul-hansen
Copy link
Contributor

This enables compression for application/wasm mime types.

Thanks for making this library! I'm using it for a Leptos app and the main reason I wanted compression was to reduce the main Wasm file size.

Here's a source that says it's recommended to compress Wasm in case that's in question: https://rustwasm.github.io/docs/book/reference/code-size.html#why-care-about-code-size

For me, this decreased the Wasm file size from 961 kB to 271 kB using brotli.

@marlonbaeten marlonbaeten merged commit 28f8c3d into tweedegolf:main Dec 4, 2023
7 of 8 checks passed
@paul-hansen paul-hansen deleted the wasm branch May 11, 2024 01:11
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

Successfully merging this pull request may close these issues.

2 participants