1 Star 0 Fork 14

Gawei/logicflow-vue3

forked from LyleChen/logicflow-vue3 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 628 Bytes
一键复制 编辑 原始数据 按行查看 历史
lylechen 提交于 2022-04-19 21:55 +08:00 . add
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path';
const pathResolve = (dir: string): any => {
return resolve(__dirname, '.', dir);
};
const alias: Record<string, string> = {
'@': pathResolve('./src/')
};
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: { alias },
server: {
open: true,
port: 3005,
host: '0.0.0.0',
proxy: {
// with options
'/api': {
target: 'https://hn.algolia.com',
changeOrigin: true,
//rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wjw200055/logicflow-vue3.git
git@gitee.com:wjw200055/logicflow-vue3.git
wjw200055
logicflow-vue3
logicflow-vue3
master

搜索帮助