From c636ef8f1dbfeabe67168e0d8190d4a54c16860b Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 19 May 2021 23:46:30 +0200 Subject: [PATCH] Disable legal comments in esbuild (#15929) 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 ec0fa1ad041..9b27bb55ac6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -86,6 +86,7 @@ export default { target: 'es2015', minify: true, css: true, + legalComments: 'none', }), ], splitChunks: {