1 Star 0 Fork 0

GKNick/vue3-ts-admin

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
vite.config.ts 1.11 KB
Copy Edit Raw Blame History
jiangqianbiao authored 2024-11-07 15:33 . feat: 调整Navbar
import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import path from "path"
import UnoCSS from "unocss/vite"
// 自动导入
import AutoImport from "unplugin-auto-import/vite"
import Components from "unplugin-vue-components/vite"
import { ElementPlusResolver } from "unplugin-vue-components/resolvers"
import ElementPlus from "unplugin-element-plus/vite"
// https://vite.dev/config/
export default defineConfig({
resolve: {
alias: [
{
find: "@",
replacement: path.resolve(__dirname, "src")
}
]
},
plugins: [
vue(),
UnoCSS(),
// 自动导入
AutoImport({
imports: ["vue", "vue-router", "pinia"],
resolvers: [ElementPlusResolver()],
eslintrc: { enabled: false },
dts: "src/auto-imports.d.ts" // 生成的全局变量放到此目录下
}),
Components({
// 默认只针对src/components目录实现自动导入
dirs: ["src/components", "src/layout/components"], // 后面布局组件相关组件也自动导入
dts: "src/components.d.ts",
resolvers: [ElementPlusResolver()]
}),
ElementPlus({})
]
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/GKNick/vue3-ts-admin.git
git@gitee.com:GKNick/vue3-ts-admin.git
GKNick
vue3-ts-admin
vue3-ts-admin
master

Search