]> source.dussan.org Git - gitea.git/commitdiff
Disable legal comments in esbuild (#15929)
authorsilverwind <me@silverwind.io>
Wed, 19 May 2021 21:46:30 +0000 (23:46 +0200)
committerGitHub <noreply@github.com>
Wed, 19 May 2021 21:46:30 +0000 (22:46 +0100)
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

index ec0fa1ad041cf0e2044243bfcedfdf25dc22c87a..9b27bb55ac64f0887963a84824a296d79b23fff7 100644 (file)
@@ -86,6 +86,7 @@ export default {
         target: 'es2015',
         minify: true,
         css: true,
+        legalComments: 'none',
       }),
     ],
     splitChunks: {