From b92f46ae62acdd6a528bab347f4b6f8cd15f7bb0 Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Sat, 16 May 2026 13:22:25 +0200 Subject: [PATCH] Optimize for size by removing unused uncompressed assets and moving attributions into a single file Signed-off-by: 1000TurquoisePogs --- webpack.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f06620a3..41e6a9f9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -102,6 +102,7 @@ const plugins = debug ? [cleanTask, definePlugin, copyTask, htmlTask] : [cleanTa new CompressionPlugin({ threshold: 100000, minRatio: 0.8, + deleteOriginalAssets: true, }), copyTask, htmlTask, @@ -121,7 +122,11 @@ const optimization = { warnings: false, }, }, - extractComments: false, + extractComments: { + condition: /^\**!|@preserve|@license|@cc_on/i, + filename: 'ATTRIBUTION.txt', + banner: false, + }, })], };