Set the brotli quality to 10 instead of 11

This commit is contained in:
Quentin Gliech
2026-01-05 15:41:43 +01:00
parent 73959a94f8
commit 7e13317178

View File

@@ -75,7 +75,8 @@ function compression(): PluginOption {
params: {
[zlib.constants.BROTLI_PARAM_MODE]:
zlib.constants.BROTLI_MODE_TEXT,
[zlib.constants.BROTLI_PARAM_QUALITY]: 11,
// 10 yields better results and is quicker than 11
[zlib.constants.BROTLI_PARAM_QUALITY]: 10,
[zlib.constants.BROTLI_PARAM_SIZE_HINT]:
uncompressed.length,
},