1 Star 0 Fork 0

熊天成 / VvueCat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.js 495 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { fileURLToPath,URL } from 'node:url'
import {
defineConfig
} from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig(({mode}) => {
return {
plugins: [
vue()
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
proxy: {
'/api': {
target: 'http://localhost:8888',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '')
}
}
},
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/xiong-goucheng/vvue-cat.git
git@gitee.com:xiong-goucheng/vvue-cat.git
xiong-goucheng
vvue-cat
VvueCat
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891