vite and react scaffold

This commit is contained in:
2025-11-19 10:10:26 +02:00
parent 8be356d23f
commit d3742ce97e
5 changed files with 7656 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
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',
},
},
})