1 Star 0 Fork 0

FFFirer/NantianmenAdminPanelVue3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.ts 902 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
import basicSsl from "@vitejs/plugin-basic-ssl"
import os from 'os'
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
basicSsl({
name: 'local',
domains: ['127.0.0.1:5173'],
certDir: './certs'
})
],
server: {
proxy: {
'/api': {
target: 'https://127.0.0.1:5001',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
secure: false
}
},
https: true
}
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fffirer/NantianmenAdminPanelVue3.git
git@gitee.com:fffirer/NantianmenAdminPanelVue3.git
fffirer
NantianmenAdminPanelVue3
NantianmenAdminPanelVue3
master

搜索帮助