You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vue3-org-chart/vite.config.js

26 lines
519 B
JavaScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
1 year ago
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
base: './', //设置打包相对路径
plugins: [vue()],
1 year ago
resolve: {
alias: {
// 配置别名路径
'@': path.resolve(__dirname, 'src'),
1 year ago
},
},
server: {
proxy: {
'/api': {
target: 'http://127.0.0.1:8089',
changeOrigin: true,
//rewrite: (path) => path.replace(/^\/api/, ''),
},
}
}
})