29 lines
720 B
TypeScript
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]',
|
|
},
|
|
},
|
|
},
|
|
})
|