Skip to content

Commit

Permalink
Disable legal comments in esbuild (go-gitea#15929)
Browse files Browse the repository at this point in the history
We already serve licenses.txt so we don't need these inline comments
preserved during esbuild minification. Saves around 4kB before gzip.
  • Loading branch information
silverwind authored and AbdulrhmnGhanem committed Aug 10, 2021
1 parent a6588f8 commit da8aa2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default {
target: 'es2015',
minify: true,
css: true,
legalComments: 'none',
}),
],
splitChunks: {
Expand Down

0 comments on commit da8aa2a

Please sign in to comment.