Mercury/ui/vite.config.ts
Matthew L McPeak 271cfda84c
All checks were successful
ci / build-ui (push) Successful in 14s
ci / test (push) Successful in 2m59s
ci / publish (push) Successful in 2m24s
Initial Commit
2026-06-17 21:46:25 -04:00

29 lines
720 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',
cleanOutDir: true,
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]',
},
},
},
})