Migrate to Vite for proper production builds with code splitting and optimization
All checks were successful
Build and Push Frontend / build (push) Successful in 23s

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hector Ros
2026-01-20 01:47:14 +01:00
parent de0a0b8357
commit 391bb7e9a8
6 changed files with 242 additions and 9 deletions

View File

@@ -4,16 +4,18 @@
"type": "module",
"private": true,
"scripts": {
"dev": "bun --hot server.ts",
"start": "bun server.ts",
"build": "bun build src/main.tsx --outdir ./public/dist --target browser --minify"
"dev": "vite",
"start": "vite preview",
"build": "vite build"
},
"devDependencies": {
"@types/bun": "latest",
"@types/react": "^19.2.8",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.2",
"autoprefixer": "^10.4.23",
"postcss": "^8.5.6"
"postcss": "^8.5.6",
"vite": "^7.3.1"
},
"peerDependencies": {
"typescript": "^5"