From b60be40f6f2b44bd7ccb6ce2d7295f28f850022a Mon Sep 17 00:00:00 2001 From: Joshua Kiwiet-Pantaleoni Date: Wed, 13 Sep 2023 19:24:34 -0700 Subject: [PATCH] fix: ensure all assets get compressed before upload MARS-288 --- build/webpack.base.conf.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 65e9cd6653..94a04d9fe1 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -334,11 +334,16 @@ module.exports = { })]), ...(isProd ? [ // gzip compression - new CompressionPlugin(), + new CompressionPlugin({ + // Compress all assets for upload + minRatio: Infinity, + }), // brotli compression new CompressionPlugin({ filename: "[path][base].br", algorithm: "brotliCompress", + // Compress all assets for upload + minRatio: Infinity, }), ] : []), ]