mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-06 20:43:03 +08:00
Update vite.config.ts
This commit is contained in:
@@ -138,6 +138,15 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
build: {
|
||||
minify: 'terser',
|
||||
terserOptions: {
|
||||
compress: {
|
||||
// 控制console.log()是否被移除,生产环境建议移除,存在内存泄漏风险
|
||||
drop_console: true,
|
||||
// 控制debugger是否被移除,酌情处理
|
||||
drop_debugger: false,
|
||||
},
|
||||
},
|
||||
chunkSizeWarningLimit: 5000,
|
||||
cssCodeSplit: false,
|
||||
rollupOptions: {
|
||||
|
||||
Reference in New Issue
Block a user