Files
zPDF_package/vite.config.js
zikai 30f5cee4a1 feat: PDF 转换前端(epub 上传/进度轮询/下载/用户软删,复用 zTools2 API)
便携式 Vue3 前端:上传 epub 转 PDF,显示上传与转换进度,完成后下载;
用户可软删任务(不再对自己展示,管理员仍可见)。凭 cookie 标识用户。
复用 zTools2 后端 /api/pdf/*(同源),独立 i18n(中英懒加载),
可独立运行或经 mainPage iframe 同源集成。含 vitest 单测 20 项。
2026-07-27 11:33:26 +08:00

13 lines
367 B
JavaScript
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 } from 'vite'
import vue from '@vitejs/plugin-vue'
// 便携式构建base './' 使产物可被任意路径托管(含 zTools2 /static 与 mainPage iframe
// preview 开放 f.zikai.wang 便于线上预览校验。
export default defineConfig({
plugins: [vue()],
base: './',
preview: {
allowedHosts: ['f.zikai.wang'],
},
})