Browse Source

Feat/scott man (#2970)

* feat: esbuild增加不同开发模式下对cnosole debugger的处理

* fix: fix production spelling
pull/2971/head
scottMan1001 3 years ago
committed by GitHub
parent
commit
a2a78f40da
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/vite-config/src/config/common.ts

2
internal/vite-config/src/config/common.ts

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

Loading…
Cancel
Save