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

Suggestion: make Brotli quality level configurable #232

Open
OliverJAsh opened this issue Oct 13, 2021 · 0 comments
Open

Suggestion: make Brotli quality level configurable #232

OliverJAsh opened this issue Oct 13, 2021 · 0 comments

Comments

@OliverJAsh
Copy link
Collaborator

Problem

At the moment the Brotli size is calculated using max quality (11).

output.brotli = brotliSize.sync(contents);

https://github.com/erwinmombay/brotli-size/blob/6247b27b4c9c635cce5a6a781248fa0196208426/src/index.ts#L19

However, we are using quality 4 (for various reasons).

We would like the Brotli size in Build Tracker to match the size of our compressed assets in production.

Proposed solution

A setting to control the quality level that would be passed through to brotli-size.

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