Fast Alles drin außer echtes Abspeicher und Backtickern

This commit is contained in:
rxf
2025-10-28 17:52:43 +01:00
parent dd32ad585e
commit 8fb01360be
17 changed files with 1139 additions and 41 deletions

View File

@@ -2,6 +2,30 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
export default defineConfig(({ mode }) => {
return {
plugins: [react()],
server: {
// Proxy nur für Development
proxy: mode === 'development' ? {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
} : {}
},
build: {
// Production Build Optimierungen
sourcemap: false,
minify: 'terser',
rollupOptions: {
output: {
manualChunks: {
vendor: ['react', 'react-dom']
}
}
}
}
}
})