Files
Snap.Hutao.Docs/docs/.vuepress/config.ts
2023-01-12 05:11:33 -08:00

58 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineUserConfig } from "vuepress";
import { viteBundler } from '@vuepress/bundler-vite'
import theme from "./theme.js";
import { searchProPlugin } from "vuepress-plugin-search-pro";
export default defineUserConfig({
base: "/",
dest: "./dist",
head:[
['script', {async:"", defer:"", "data-website-id":"f586534f-1741-450e-a0f4-3c0189f993c9",
src:"https://umami.irain.in/umami.js"}, `
`],
],
locales: {
"/": {
lang: "zh-CN",
title: "胡桃工具箱",
description: "多功能的原神工具箱",
},
"/en/": {
lang: "en-US",
title: "Snap Hutao",
description: "Super utilitarian Genshin Impact Tool",
},
},
plugins: [
searchProPlugin({
indexContent: true,
customFields:[
{
getter: (page) => page.frontmatter.category,
formatter: {
"/": "分类: $content",
"/en/": "Category$content",
},
},
]
})
],
theme,
shouldPrefetch: false,
bundler: viteBundler({
viteOptions: {
build:{
chunkSizeWarningLimit: 1500
}
},
vuePluginOptions: {},
}),
});