删除打包后去掉的console.log internal\vite-config\src\config\common.ts

zzq
石超 1 year ago
parent 6c92ca1589
commit 9a0527f910

@ -6,7 +6,7 @@ const commonConfig: (mode: string) => UserConfig = (mode) => ({
host: true,
},
esbuild: {
drop: mode === 'production' ? ['console', 'debugger'] : [],
drop: mode === 'production' ? ['debugger'] : [],
},
build: {
reportCompressedSize: false,

Loading…
Cancel
Save