Files
whattoplay/vite.config.ts
2026-03-01 14:44:41 +01:00

34 lines
676 B
TypeScript

import tailwindcss from "@tailwindcss/vite"
import { TanStackRouterVite } from "@tanstack/router-plugin/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
import { VitePWA } from "vite-plugin-pwa"
export default defineConfig({
plugins: [
TanStackRouterVite(),
react(),
tailwindcss(),
VitePWA({
registerType: "autoUpdate",
workbox: {
globPatterns: ["**/*.{js,css,html,ico,png,svg,wasm,data}"],
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024,
},
}),
],
resolve: {
alias: {
"@": "/src",
},
},
server: {
proxy: {
"/api": {
target: "http://localhost:3001",
changeOrigin: true,
},
},
},
})