Files
agent-loop/async-agent-lab/web/vite.config.ts
2026-11-12 15:29:12 +08:00

12 lines
481 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 react from '@vitejs/plugin-react';
import { viteSingleFile } from 'vite-plugin-singlefile';
// 构建成单个 index.html:本地服务直接托管现场主讲稿。
export default defineConfig({
root: new URL('.', import.meta.url).pathname,
plugins: [react(), viteSingleFile()],
server: { port: 5178, proxy: { '/api': 'http://127.0.0.1:8791' } },
build: { outDir: 'dist', emptyOutDir: true, chunkSizeWarningLimit: 4000 },
});