oss-ecosystem-data / code /web /vite.config.ts
saladday1's picture
code: sync from git
2471af3 verified
Raw History Blame
437 Bytes
import path from "node:path"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
// Built once and uploaded to the Space; the page reads data/*.json at runtime, so the daily job
// only replaces those files.
export default defineConfig({
base: "./",
plugins: [react(), tailwindcss()],
resolve: { alias: { "@": path.resolve(import.meta.dirname, "./src") } },
})