Skip to content

Commit c636ef8

Browse files
authored
Disable legal comments in esbuild (go-gitea#15929)
We already serve licenses.txt so we don't need these inline comments preserved during esbuild minification. Saves around 4kB before gzip.
1 parent e542b41 commit c636ef8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export default {
8686
target: 'es2015',
8787
minify: true,
8888
css: true,
89+
legalComments: 'none',
8990
}),
9091
],
9192
splitChunks: {

0 commit comments

Comments
 (0)