mirror of https://gitee.com/dreamcenter/rss.git
28 lines
536 B
JavaScript
28 lines
536 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
import Components from 'unplugin-vue-components/vite';
|
|
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
proxy: {
|
|
'/plugin': {
|
|
target: 'http://127.0.0.1:8080',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
Components({
|
|
resolvers: [
|
|
AntDesignVueResolver({
|
|
importStyle: false, // css in js
|
|
}),
|
|
],
|
|
})
|
|
],
|
|
})
|
|
|