You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 19, 2026. It is now read-only.
The Brotli examples in the README do not correctly set the compressionOptions. The BROTLI_PARAM_QUALITY parameter is the equivalent to zlib's level option in terms of functionality, but not naming.
Your Proposal for Changes
Revise the examples to set the Brotli parameters correctly.
This plug-in (compression-webpack-plugin) has no additional conditions in the code to support this syntax.
I created reproduction-steps (https://github.com/180254/compression-webpack-plugin-issue-154) that shows that master-branch-example does not work. I compressed a file several times. Changing "level" has no effect, while changing BROTLI_PARAM_QUALITY has.
Activity
alexander-akait commentedon Feb 26, 2020
Feel free to send a PR with fixes
180254 commentedon Oct 24, 2020
Points 1 and 2 described there are still valid and documentation needs to be revised.
Rationale:
alexander-akait commentedon Oct 24, 2020
Feel free to open a new issue or send a fix
docs: fixed setting compression level for brotliCompress.
fix: always set compression level to maximum (also for Brotli).
fix: always set compression level to maximum (also for Brotli).
docs: fix setting compression level for brotliCompress (webpack#154)
fix: always set compression level to maximum, also for Brotli (webpac…