1 Star 0 Fork 0

HuYong/ uniapp-v3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.ts 722 Bytes
一键复制 编辑 原始数据 按行查看 历史
HuYong 提交于 2024-06-05 14:18 . 代码格式整理
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
// https://vitejs.dev/config/
export default defineConfig({
build: {
sourcemap: true,
},
plugins: [uni()],
resolve: {
extensions: ['.ts', '.js', '.json', '.vue', '.less', '.scss', '.css'], // 省略后缀 以及 index.*
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'#': fileURLToPath(new URL('./types', import.meta.url)),
},
},
// vite 相关配置
server: {
host: true,
open: true,
port: 5151,
proxy: {
'/sysApi': {
target: 'https://www.gorho.cn',
changeOrigin: true,
// rewrite: p => p.replace(/^\/api/, '')
},
},
},
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shuaigeyong/uniapp-v3.git
git@gitee.com:shuaigeyong/uniapp-v3.git
shuaigeyong
uniapp-v3
uniapp-v3
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385