diff --git a/lib/filter.js b/lib/filter.js index 0a62c2a..beab7f0 100644 --- a/lib/filter.js +++ b/lib/filter.js @@ -159,8 +159,8 @@ function logicBrotli () { if (assetTxt.length) { // Input has to be buffer for brotli let input = new Buffer.from(assetTxt, 'utf-8') - // brotli compress using highest level - br.compress(input, { quality: br.BROTLI_MAX_QUALITY }, (err, output) => { + // brotli defaults to max compression level + br.compress(input, (err, output) => { if (!err) { // Save the compressed file to .br route.set(path + '.br', output)