first commit
This commit is contained in:
11
async-agent-lab/web/vite.config.ts
Normal file
11
async-agent-lab/web/vite.config.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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 },
|
||||
});
|
||||
Reference in New Issue
Block a user