Scaffold new frontend with Vite + React 18 + TypeScript

This commit is contained in:
2026-04-23 21:04:27 +04:00
parent 63ac2df4b5
commit abef71e4ab
13 changed files with 3359 additions and 0 deletions

19
frontend/vite.config.ts Normal file
View File

@@ -0,0 +1,19 @@
import path from 'node:path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { TanStackRouterVite } from '@tanstack/router-plugin/vite'
export default defineConfig({
plugins: [
TanStackRouterVite({ target: 'react', autoCodeSplitting: true }),
react(),
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 3000,
},
})