Files
excel-view/vite.config.js

29 lines
674 B
JavaScript
Raw Normal View History

2025-04-24 13:39:24 +08:00
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
2025-05-15 21:24:56 +08:00
import tailwindcss from "@tailwindcss/vite"
import path from 'path'
2025-04-24 13:39:24 +08:00
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
tailwindcss()
],
2025-05-15 21:24:56 +08:00
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
},
server: {
2026-06-26 14:29:50 +08:00
port: 16701,
2025-05-15 21:24:56 +08:00
proxy: {
'/api': {
// target: 'http://127.0.0.1:18007/api/',
2026-06-26 14:29:50 +08:00
target: 'http://127.0.0.1:16702/api/',
2025-05-15 21:24:56 +08:00
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
2025-04-24 13:39:24 +08:00
})