mirror of https://gitee.com/lmlz_0/dc-ui.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
537 B
13 lines
537 B
import path from "path";
|
|
import AutoImport from "unplugin-auto-import/vite";
|
|
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
|
|
import { NaiveUiResolver } from "unplugin-vue-components/resolvers";
|
|
|
|
export default function createAutoImport() {
|
|
return AutoImport({
|
|
imports: ["vue", "vue-router", "pinia", "@vueuse/core"],
|
|
resolvers: [ElementPlusResolver(), NaiveUiResolver()],
|
|
vueTemplate: true, // 是否在 vue 模板中自动导入
|
|
dts: path.resolve("src", "types", "auto-imports.d.ts"),
|
|
});
|
|
}
|
|
|