Skip to content

Commit 257f44f

Browse files
committed
fix passing of brotli options
1 parent 8ca73cd commit 257f44f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,10 @@ module.exports = {
313313
algorithm: 'brotliCompress',
314314
test: /\.(js|css)$/,
315315
compressionOptions: {
316-
[constants.BROTLI_PARAM_MODE]: constants.BROTLI_MODE_TEXT,
317-
[constants.BROTLI_PARAM_QUALITY]: constants.BROTLI_MAX_QUALITY,
316+
params: {
317+
[constants.BROTLI_PARAM_MODE]: constants.BROTLI_MODE_TEXT,
318+
[constants.BROTLI_PARAM_QUALITY]: constants.BROTLI_MAX_QUALITY,
319+
}
318320
},
319321
}),
320322
].filter((plugin) => !!plugin),

0 commit comments

Comments
 (0)