webapp: Configure additional compression

This commit is contained in:
Thomas Basler
2025-08-28 20:09:57 +02:00
parent 1c489ed2af
commit f1b1bd4111

View File

@@ -45,6 +45,15 @@ export default defineConfig(({ command }) => { return {
outDir: '../webapp_dist',
emptyOutDir: true,
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true,
},
format: {
comments: false,
},
},
chunkSizeWarningLimit: 1024,
rollupOptions: {
output: {
@@ -58,9 +67,6 @@ export default defineConfig(({ command }) => { return {
},
target: 'es2022',
},
esbuild: {
drop: command !== 'serve' ? ['console', 'debugger'] : []
},
css: {
preprocessorOptions: {
scss: {