mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-10 16:59:52 +01:00
webapp: Configure additional compression
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user