summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-05-19 23:46:30 +0200
committerGitHub <noreply@github.com>2021-05-19 22:46:30 +0100
commitc636ef8f1dbfeabe67168e0d8190d4a54c16860b (patch)
tree71a28537617f119a63b67f025573d829a35efc85 /webpack.config.js
parente542b416a700eb27f14b97145bd5f76f43efe2eb (diff)
downloadgitea-c636ef8f1dbfeabe67168e0d8190d4a54c16860b.tar.gz
gitea-c636ef8f1dbfeabe67168e0d8190d4a54c16860b.zip
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.
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js1
1 files changed, 1 insertions, 0 deletions
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: {