From: silverwind Date: Wed, 19 May 2021 21:46:30 +0000 (+0200) Subject: Disable legal comments in esbuild (#15929) X-Git-Tag: v1.15.0-rc1~265 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c636ef8f1dbfeabe67168e0d8190d4a54c16860b;p=gitea.git 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. --- diff --git a/webpack.config.js b/webpack.config.js index ec0fa1ad04..9b27bb55ac 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -86,6 +86,7 @@ export default { target: 'es2015', minify: true, css: true, + legalComments: 'none', }), ], splitChunks: {