-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
precompress - please add configuration #10789
Comments
I just found this issue while trying to find out how to configure the precompress task. Instead of (or in addition to) the minimum size option, imo an option to delete the files that end up being larger than their uncompressed version would be better. The minimum size is a guessing game and it depends on the content of the file, too. |
What's the usecase for that? |
More ideas for configuration here: #1693 (comment) I'd rather keep things on the simple side though |
Probably not as important as # 1 and # 2, but it would allow for additional flexibility. Looks like Thank you! |
Actually the code has
I guess you might not need to create |
Personally, I am using brotli and would not want to disable it. Not sure if anyone else has a use case for doing that. I would be OK with having the option to disable only gzip. |
I have to disable precompress entirely because Bun doesn't have Would be neat to have the option to just disable brotli. |
Useful site to estimate KB savings for your site based on compression level: For my SvelteKit site, max brotli would save 15-20% over Cloudflare's default brotli level (4). zstd would be even more. @DavidPHH bun supports now via |
Describe the problem
Hello,
Precompress could use some configuration settngs for the adapters that support it.
Thank you!
Describe the proposed solution
Alternatives considered
No response
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: