Skip to content

Commit 79843ee

Browse files
authored
Use max level compression for brotli compressor (#10128)
1 parent 292ab22 commit 79843ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/compressors/brotli/src/BrotliCompressor.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ export default (new Compressor({
99
}
1010

1111
return {
12-
stream: stream.pipe(zlib.createBrotliCompress()),
12+
stream: stream.pipe(
13+
zlib.createBrotliCompress({
14+
[zlib.constants.BROTLI_PARAM_QUALITY]:
15+
zlib.constants.BROTLI_MAX_QUALITY,
16+
}),
17+
),
1318
type: 'br',
1419
};
1520
},

0 commit comments

Comments
 (0)