From e190cff43417320fe175e03a4eafffef67b8bc14 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 19 May 2021 22:53:34 +0200 Subject: [PATCH] Disable legal comments in esbuild We already serve licenses.txt so we don't need these inline comments preserved during esbuild minification. Saves around 4kB before gzip. --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.js b/webpack.config.js index ec0fa1ad041cf..9b27bb55ac64f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -86,6 +86,7 @@ export default { target: 'es2015', minify: true, css: true, + legalComments: 'none', }), ], splitChunks: {