From 4f44ec3e227c9ed8e01c4542aae038b3fdc6ac0e Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Thu, 2 Feb 2023 13:45:36 +0100 Subject: [PATCH] webpack.config.js: update compression plugin to succeed build --- webpack.config.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 89d159d..ecc0f0d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -91,17 +91,11 @@ const plugins = [ /* Only minimize when in production mode */ if (production) { - /* Rename output files when minimizing */ - output.filename = "[name].min.js"; - plugins.unshift( new CompressionPlugin({ - asset: "[path].gz[query]", - test: /\.(js|html)$/, - minRatio: 0.9, + test: /\.(css|js|html)$/, deleteOriginalAssets: true, - }) - ); + })); } var babel_loader = {