-
Notifications
You must be signed in to change notification settings - Fork 26
/
vite.config.ts
26 lines (23 loc) · 916 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import {defineConfig} from "vite";
import vue from "@vitejs/plugin-vue";
import Markdown from "vite-plugin-vue-markdown";
import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";
import {ElementPlusResolver, NaiveUiResolver, VantResolver} from "unplugin-vue-components/resolvers";
import {viteSingleFile} from "vite-plugin-singlefile";
// https://vitejs.dev/config/
export default defineConfig(config => {
return {
plugins: [
AutoImport({
resolvers: [ElementPlusResolver(), NaiveUiResolver(), VantResolver()],
}),
Components({
resolvers: [ElementPlusResolver(), NaiveUiResolver(), VantResolver()],
}),
vue({include: [/\.vue$/, /\.md$/]}),
Markdown(),
config.mode === "single-file" ? viteSingleFile() : undefined,
],
};
});