chore: scaffold turbo monorepo with hono api and react admin web
This commit is contained in:
25
apps/web/vite.config.ts
Normal file
25
apps/web/vite.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import path from 'node:path'
|
||||
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import { tanstackRouter } from '@tanstack/router-plugin/vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
const srcDir = path.resolve(import.meta.dirname, './src')
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
// Must run before react(): it watches `src/routes` and generates `routeTree.gen.ts`.
|
||||
tanstackRouter({ target: 'react', autoCodeSplitting: true }),
|
||||
react(),
|
||||
tailwindcss(),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': srcDir,
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user