forked from frg2089/frg2089.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vuepress.config.ts
46 lines (35 loc) · 945 Bytes
/
vuepress.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
44
45
46
import { viteBundler } from '@vuepress/bundler-vite'
import { defineUserConfig } from 'vuepress'
import { getDirname, path } from 'vuepress/utils'
import friends from './vuepress.friends'
import theme from './vuepress.theme'
const dirname = getDirname(import.meta.url)
const component = (component: string) =>
path.resolve(dirname, 'src', 'components', component)
export default defineUserConfig({
bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {},
}),
base: '/',
locales: {
'/': {
lang: 'zh-CN',
title: '岛风的港区',
description: '这里是岛风的个人博客网站',
},
},
temp: '.temp',
cache: '.cache',
public: 'public',
dest: 'dist',
theme,
templateBuild: 'index.html',
shouldPrefetch: false,
alias: {
'@theme-hope/components/MarkdownContent': component('MarkdownContent.vue'),
},
define: {
しまかぜのともだち: friends,
},
})