1 Star 0 Fork 78

潘大 / uni-preset-vue

forked from DCloud / uni-preset-vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.js 1019 Bytes
一键复制 编辑 原始数据 按行查看 历史
潘大 提交于 2023-07-03 14:16 . 兽决助手
import {defineConfig} from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
uni(),
],
server: {
proxy: {
"/api": {
// target: "http://localhost:8088",
target: "http://www.wechao.xyz:8088",
changeOrigin: true,
rewrite: (path) => {
const newPath = path.replace(/^\/api/, "");
// console.log(newPath, 'newPath')
return newPath
}
},
"/mhxy": {
// target: "http://localhost:8088",
target: "http://www.wechao.xyz:8088",
changeOrigin: true,
// rewrite: (path) => {
// const newPath = path.replace(/^\/api/, "");
// // console.log(newPath, 'newPath')
// return newPath
// }
},
}
}
})
JavaScript
1
https://gitee.com/pandaSec/uni-preset-vue.git
git@gitee.com:pandaSec/uni-preset-vue.git
pandaSec
uni-preset-vue
uni-preset-vue
master

搜索帮助