Files
xk-admin/apps/desktop/electron.vite.config.ts
李琦 beba5e8feb feat: 订单双视图、工作台日历组件、医生排班管理与挂号语音提醒
- 订单双视图:商品订单/处方/挂号列表新增卡片视图(CardList)、视图切换组件 view-mode-switch、stat-islands 统计岛、constants 字典
- 工作台:新增工作日历 Widget、待办日历、即将到访预约、公告滚动 NoticeTicker、日历面板 CalendarPanel
- 医生排班:新增排班 API、ScheduleDrawer 抽屉、schedule-calendar 组件、门店设置弹窗
- 日志与通知:新增排班变更日志页、排班变更通知视图
- 挂号提醒:新增挂号语音播报资源与 register-notify 工具
- 桌面端:新增 apps/desktop 壳及 desktop 工具方法
- 其他:处方/订单导出、聊天设置与 WebSocket 等小幅优化
2026-08-14 17:46:50 +08:00

27 lines
937 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
/**
* electron-vite 构建配置
* 只构建主进程与预加载脚本,不配置 renderer
* - 开发模式渲染层直接加载 web-antd 的 vite dev serverhttp://localhost:5666
* - 打包模式渲染层加载 app://local/web-antd 的生产 dist由主进程自定义协议提供服务
* externalizeDepsPlugindependencieselectron-updater / electron-log保持外部化
* 由 electron-builder 按生产依赖收集进安装包,避免打包器转译这类含运行时文件读取的库出问题
*/
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()],
build: {
outDir: 'out/main',
lib: { entry: 'src/main/index.ts' },
},
},
preload: {
plugins: [externalizeDepsPlugin()],
build: {
outDir: 'out/preload',
lib: { entry: 'src/preload/index.ts' },
},
},
});