mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-09-22 05:42:56 +00:00
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
27 lines
574 B
TypeScript
27 lines
574 B
TypeScript
import path from "node:path"
|
|
import tailwindcss from "@tailwindcss/vite"
|
|
import { tanstackRouter } from "@tanstack/router-plugin/vite"
|
|
import react from "@vitejs/plugin-react-swc"
|
|
import { defineConfig } from "vite"
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: "../backend/app/frontend",
|
|
emptyOutDir: true,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
plugins: [
|
|
tanstackRouter({
|
|
target: "react",
|
|
autoCodeSplitting: true,
|
|
}),
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
})
|