1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 00:09:16 +08:00

fix: Fix the issue of frontend packaging errors (#7661)

This commit is contained in:
ssongliu 2025-01-07 14:47:35 +08:00 committed by GitHub
parent 83db40e261
commit 8922395fdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
}), }),
], ],
esbuild: { esbuild: {
pure: viteEnv.VITE_DROP_CONSOLE ? ['console.log', 'debugger'] : [], pure: viteEnv.VITE_DROP_CONSOLE ? ['console.log'] : [],
}, },
build: { build: {
outDir: '../cmd/server/web', outDir: '../cmd/server/web',