You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
691 B
28 lines
691 B
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import { VantResolver } from 'unplugin-vue-components/resolvers'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
// AutoImport({
|
|
// resolvers: [VantResolver()],
|
|
// }),
|
|
// Components({
|
|
// resolvers: [VantResolver()],
|
|
// }),
|
|
],
|
|
server: {
|
|
host: '0.0.0.0', // 允许所有网络接口访问
|
|
proxy: {
|
|
'/pro-report': {
|
|
target: 'http://47.109.32.96:9999',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
})
|
|
|