2 Star 0 Fork 0

albertzc/projectman

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.js 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
沫柒柒 提交于 2024-11-07 19:46 . git
/*
* @Author: albertzc 1033394121@qq.com
* @Date: 2024-10-31 03:39:50
* @LastEditors: albertzc 1033394121@qq.com
* @LastEditTime: 2024-11-01 01:45:15
* @FilePath: /project-admin-master/vite.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { defineConfig } from 'vite'
import AutoImport from 'unplugin-auto-import/vite'
import Icons from 'unplugin-icons/vite'
import Components from 'unplugin-vue-components/vite'
import IconsResolver from 'unplugin-icons/resolver'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue(),
AutoImport({
resolvers: [ElementPlusResolver(),
IconsResolver({
prefix: 'Icon',
}),
],
}),
Components({
resolvers: [
// 自动注册图标组件
IconsResolver({
enabledCollections: ['ep'],
}),
ElementPlusResolver()],
}),
Icons({
autoInstall: true,
}),],
base: './',
resolve: {
alias: {
'@': '/src',
},
},
server: {
host: '0.0.0.0',
port: 80,
cors: true,
proxy: {
'/api': {
target: 'http://139.224.220.210:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
},
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/albertcz/projectman.git
git@gitee.com:albertcz/projectman.git
albertcz
projectman
projectman
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385