build: keep console.error/warn/info in production builds
All checks were successful
CI / update (push) Successful in 1m22s
All checks were successful
CI / update (push) Successful in 1m22s
Changed drop_console from true to ['log', 'debug'] to retain error and warning logs for debugging while reducing bundle size.
This commit is contained in:
@@ -10,7 +10,7 @@ export default defineConfig({
|
||||
minify: 'terser',
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_console: ['log', 'debug'],
|
||||
drop_debugger: true
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user