Files
ogame-vue-ts/capacitor.config.ts
谦君 010ea137ac perf: 优化安卓WebView性能与调试配置
MainActivity中为WebView启用硬件加速、DOM存储、数据库及默认缓存模式,提升性能与兼容性。capacitor.config.ts开启webContentsDebugging,便于调试排查问题。
2025-12-26 23:44:22 +08:00

28 lines
556 B
TypeScript

import type { CapacitorConfig } from '@capacitor/cli'
const config: CapacitorConfig = {
appId: 'games.wenzi.ogame',
appName: 'OGame Vue Ts',
webDir: 'docs',
server: {
androidScheme: 'https'
},
android: {
buildOptions: {
keystorePath: undefined,
keystoreAlias: undefined
},
// 启用 WebView 调试,方便排查问题
webContentsDebuggingEnabled: true,
allowMixedContent: false
},
plugins: {
// 禁用键盘自动调整视口
Keyboard: {
resize: 'none'
}
}
}
export default config