1 Star 0 Fork 0

泡芙小姐/vue3高精智航后台

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.js 944 Bytes
一键复制 编辑 原始数据 按行查看 历史
泡芙小姐 提交于 2022-03-09 09:34 . '接口更新'
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vitePluginImport from "vite-plugin-babel-import";
import path from "path";
const baseUrl = {
development: "./",
beta: "./",
release: "./",
};
// https://vitejs.dev/config/
export default ({ mode }) =>
defineConfig({
plugins: [
vue(),
vitePluginImport([
{
libraryName: "element-plus",
libraryDirectory: "es",
style(name) {
return `element-plus/lib/theme-chalk/${name}.css`;
},
},
]),
],
base: baseUrl[mode],
resolve: {
alias: {
"~": path.resolve(__dirname, "./"),
"@": path.resolve(__dirname, "src"),
},
},
server: {
proxy: {
"/api": {
target: "http://192.168.1.80/api",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
},
},
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yang_weifeng/vue3-gaojing-zhihang-backstage.git
git@gitee.com:yang_weifeng/vue3-gaojing-zhihang-backstage.git
yang_weifeng
vue3-gaojing-zhihang-backstage
vue3高精智航后台
master

搜索帮助