mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-25 17:44:13 +08:00
更新 Vite 配置,启用压缩选项以移除控制台日志和调试器,
This commit is contained in:
@@ -35,6 +35,7 @@ export default defineConfig({
|
||||
federation({
|
||||
name: 'MoviePilot',
|
||||
filename: 'remoteEntry.js',
|
||||
// @ts-ignore
|
||||
remotes: {
|
||||
// 动态remotes将在运行时注入
|
||||
dummy: {
|
||||
@@ -171,8 +172,8 @@ export default defineConfig({
|
||||
minify: 'terser',
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: false,
|
||||
drop_debugger: false,
|
||||
drop_console: true,
|
||||
drop_debugger: true,
|
||||
},
|
||||
},
|
||||
chunkSizeWarningLimit: 5000,
|
||||
|
||||
Reference in New Issue
Block a user