Files
form-center-front/vite.config.ts
T
chenxing cebc32fbef
build / build (push) Successful in 1m23s
feat(skeleton): T1 前端工程壳——vite5 + vue3 + TS 最小壳
- 只建壳:index.html / src/main.ts / src/App.vue(占位)/ src/env.d.ts / vite.config.ts / tsconfig{,.node}.json / .npmrc / .gitignore
- base="./"(同 notice / flow-center 口径),保证 projman /form-center/ 挂载下静态资源可取;dev 端口 8089
- package-lock.json 入库:CI 走 npm ci,无锁即红
- typescript 5.2.2 + vue-tsc 1.8.27 锁死配对(^5.2.2 会解析到 5.9,vue-tsc 1.8 直接崩在 supportedTSExtensions patch)
- 自验:npm run build 过、npm run type-check 无报错
- 平台约定(A 类 loader / view-ui-plus 1.3.24 / alova / router / layout)留 T5 落地
2026-10-14 12:21:19 +08:00

18 lines
633 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 } from "vite";
import vue from "@vitejs/plugin-vue";
// T1 只做工程壳(CI 的 npm ci + npm run build 必须过)。
// T5 fork notice/front 时在此接入 A 类 loader、auto-import、svg icons、dev proxy 等平台约定。
export default defineConfig({
// 相对路径产物:静态资源在 projman 的 /form-center/ 挂载下也能取到(同 notice / flow-center 口径)
base: "./",
plugins: [vue()],
build: {
outDir: "dist"
},
server: {
// 本地 dev 端口(后端 8086;8077=notice front、8087=svc-hall front、8088=flow-center front 顺延)
port: 8089
}
});