← full-stack-fastapi-template / frontend/vite.config.ts
| 1 | import path from "node:path" |
| 2 | import tailwindcss from "@tailwindcss/vite" |
| 3 | import { tanstackRouter } from "@tanstack/router-plugin/vite" |
| 4 | import react from "@vitejs/plugin-react-swc" |
| 5 | import { defineConfig } from "vite" |
| 6 | |
| 7 | // https://vitejs.dev/config/ |
| 8 | export default defineConfig({ |
| 9 | resolve: { |
| 10 | alias: { |
| 11 | "@": path.resolve(__dirname, "./src"), |
| 12 | }, |
| 13 | }, |
| 14 | plugins: [ |
| 15 | tanstackRouter({ |
| 16 | target: "react", |
| 17 | autoCodeSplitting: true, |
| 18 | }), |
| 19 | react(), |
| 20 | tailwindcss(), |
| 21 | ], |
| 22 | }) |
| 23 |