| 1234567891011121314151617181920212223242526272829303132 |
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- import { fileURLToPath, URL } from 'node:url'
- export default defineConfig({
- plugins: [vue()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- },
- server: {
- port: 5173,
- proxy: {
- '/api': {
- target: 'http://127.0.0.1:8000',
- changeOrigin: true
- }
- }
- },
- build: {
- rollupOptions: {
- output: {
- manualChunks: {
- 'vendor-vue': ['vue', 'vue-router', 'pinia'],
- 'vendor-echarts': ['echarts'],
- 'vendor-element': ['element-plus', '@element-plus/icons-vue']
- }
- }
- }
- }
- })
|