23 lines
461 B
JavaScript
23 lines
461 B
JavaScript
|
import { defineConfig } from 'vite'
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [vue()],
|
||
|
server: {
|
||
|
proxy: {
|
||
|
'/api/v1': 'http://localhost:8181'
|
||
|
}
|
||
|
},
|
||
|
build: {
|
||
|
rollupOptions: {
|
||
|
output: {
|
||
|
entryFileNames: '[name].js',
|
||
|
chunkFileNames: '[name].js',
|
||
|
assetFileNames: '[name][extname]',
|
||
|
manualChunks: () => 'everything.js'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
})
|