Mercury/ui/vite.config.ts
Matthew L McPeak a202a06562
All checks were successful
ci / build-ui (push) Successful in 14s
ci / test (push) Successful in 3m13s
ci / publish (push) Successful in 2m55s
Inital Commit
2026-06-18 19:24:40 -04:00

28 lines
830 B
TypeScript

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
export default defineConfig({
plugins: [vue()],
server: {
proxy: {
"/api": "http://localhost:3000",
"/auth": "http://localhost:3000",
"/admin": "http://localhost:3000",
},
},
build: {
outDir: "dist",
rollupOptions: {
output: {
manualChunks: {
vue: ["vue", "vue-router", "pinia"],
primevue: ["@primevue/core"],
nychthemeron: ["@nychthemeron/library"],
},
entryFileNames: "js/[name]-[hash].js",
chunkFileNames: "js/[name]-[hash].js",
assetFileNames: "assets/[name]-[hash][extname]",
},
},
},
});