24 lines
448 B
TypeScript
24 lines
448 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: 'dist/embed',
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
input: 'src/embed.tsx',
|
|
output: {
|
|
entryFileNames: 'embed.js',
|
|
assetFileNames: 'embed.[ext]',
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
port: 5174,
|
|
proxy: {
|
|
'/api': 'http://localhost:8090',
|
|
},
|
|
},
|
|
})
|