1 Star 0 Fork 3

清流前端/EWShop of Vue3

forked from 智多多/EWShop of Vue3 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.ts 585 Bytes
一键复制 编辑 原始数据 按行查看 历史
智多多 提交于 2021-05-05 18:23 +08:00 . 选择地址
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vitePluginImp from "vite-plugin-imp"
import path from "path"
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
"api": path.resolve(__dirname, "api"),
"style": path.resolve(__dirname, 'src/style')
}
},
plugins: [vue()],
server: {
proxy: {
"/api": {
target: "https://elm.cangdu.org",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/dc_teach/ewshop-of-vue3.git
git@gitee.com:dc_teach/ewshop-of-vue3.git
dc_teach
ewshop-of-vue3
EWShop of Vue3
master

搜索帮助