assistant/vite.console.config.ts

16 lines
426 B
TypeScript
Raw Permalink 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';
// 中心服务端的后台界面:构建到 dist/console,由 server/main.py 直接伺候(不单独起前端服务)
export default defineConfig({
root: 'console',
base: '/',
plugins: [react()],
server: { port: 8802, strictPort: true },
build: {
outDir: '../dist/console',
emptyOutDir: true,
sourcemap: true,
},
});