9 lines
394 B
TypeScript
9 lines
394 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { resolve } from 'node:path';
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: { outDir: 'dist-client', sourcemap: false, manifest: true, rollupOptions: { input: { desktop: resolve('index.html'), mobile: resolve('mobile.html') } } },
|
|
server: { proxy: { '/api': 'http://127.0.0.1:4318' } },
|
|
});
|