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.
ShiJiTianKongDiPingTai/vite.config.ts.timestamp-17...

42 lines
1.1 KiB
JavaScript

// vite.config.ts
import { defineApplicationConfig } from 'file:///E:/test/vue-vben-admin/internal/vite-config/dist/index.mjs';
var vite_config_default = defineApplicationConfig({
overrides: {
optimizeDeps: {
include: [
'echarts/core',
'echarts/charts',
'echarts/components',
'echarts/renderers',
'qrcode',
'@iconify/iconify',
'ant-design-vue/es/locale/zh_CN',
'ant-design-vue/es/locale/en_US',
],
},
server: {
proxy: {
'/basic-api': {
target: 'http://localhost:3000',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
// only https
// secure: false
},
'/upload': {
target: 'http://localhost:3300/upload',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/upload`), ''),
},
},
warmup: {
clientFiles: ['./index.html', './src/{views,components}/*'],
},
},
},
});
export { vite_config_default as default };