Files
helix/helix-web/vite.config.ts
T
siujamo c732624580 merge: import helix-web history into helix-web/
git-subtree-dir: helix-web
git-subtree-mainline: 21f14f8c05
git-subtree-split: 83f3120fdc
2026-09-01 10:05:58 +08:00

19 lines
449 B
TypeScript

import { fileURLToPath, URL } from "node:url"
import { defineConfig } from "vite"
import react from "@vitejs/plugin-react"
import tailwindcss from "@tailwindcss/vite"
import svgr from "vite-plugin-svgr"
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss(), svgr()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
allowedHosts: true,
}
})