1 Star 2 Fork 1

WFT/wft-ol-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.ts 840 Bytes
一键复制 编辑 原始数据 按行查看 历史
WFT 提交于 2024-01-21 20:41 . 初始化项目
import { defineConfig, loadEnv } from 'vite'
import type { ConfigEnv, UserConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
// https://vitejs.dev/config/
export default ({ mode }: ConfigEnv): UserConfig => {
const env = loadEnv(mode, process.cwd());
return defineConfig({
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
})
],
resolve: {
alias: {
'@': path.join(__dirname, 'src')
}
},
server: {
port: 3000,
host: '0.0.0.0',
open: false
}
})
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wang-futai/wft-ol-example.git
git@gitee.com:wang-futai/wft-ol-example.git
wang-futai
wft-ol-example
wft-ol-example
master

搜索帮助