mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -86,6 +86,7 @@ export default {
 | 
				
			|||||||
        target: 'es2015',
 | 
					        target: 'es2015',
 | 
				
			||||||
        minify: true,
 | 
					        minify: true,
 | 
				
			||||||
        css: true,
 | 
					        css: true,
 | 
				
			||||||
 | 
					        legalComments: 'none',
 | 
				
			||||||
      }),
 | 
					      }),
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    splitChunks: {
 | 
					    splitChunks: {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user