-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
vite.config.ts
43 lines (42 loc) · 987 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { defineConfig } from 'vite'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'
import navbar from './plugins/navbar'
import sidebar from './plugins/sidebar'
import footer from './plugins/footer'
import ads from './plugins/ads'
export default defineConfig({
optimizeDeps: {
exclude: [
'vitepress',
],
},
server: {
hmr: {
overlay: false,
},
},
plugins: [
Components({
// allow auto load markdown components under `.vitepress/theme/components`
dirs: [
'.vitepress/theme/components',
],
extensions: ['vue', 'md'],
// allow auto import and register components used in markdown
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
dts: 'components.d.ts',
}),
AutoImport({
imports: [
'vue',
'@vueuse/core',
],
dts: 'auto-imports.d.ts',
}),
navbar(),
sidebar(),
footer(),
ads(),
],
})