1 Star 1 Fork 0

ChuTingzj/react-back-stage-management

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 587 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangjing 提交于 2022-07-26 20:30 . first
import { resolve } from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: [
{
find: '@',
replacement: resolve(__dirname, './src')
}
]
},
server: {
proxy: {
'/ajax': {
target: 'https://m.maoyan.com',
changeOrigin: true
},
'/js': {
target: 'http://127.0.0.1:5000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/js/, '')
}
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/ChuTingzj/react-back-stage-management.git
[email protected]:ChuTingzj/react-back-stage-management.git
ChuTingzj
react-back-stage-management
react-back-stage-management
master

搜索帮助