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