28 lines
830 B
TypeScript
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]",
|
|
},
|
|
},
|
|
},
|
|
});
|