forked from Snailclimb/JavaGuide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ts
More file actions
38 lines (37 loc) · 937 Bytes
/
config.ts
File metadata and controls
38 lines (37 loc) · 937 Bytes
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
const { defineHopeConfig } = require("vuepress-theme-hope");
import themeConfig from "./themeConfig";
module.exports = defineHopeConfig({
port: "8080",
title: "JavaGuide",
description: "Java学习&&面试指南",
//指定 vuepress build 的输出目录
dest: "./dist",
// 是否开启默认预加载 js
shouldPrefetch: (file, type) => false,
head: [
// 添加百度统计
[
"script", {},
`var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?5dd2e8c97962d57b7b8fea1737c01743";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();`
],
[
"link",
{
rel: "stylesheet",
href: "//at.alicdn.com/t/font_2922463_99aa80ii7cf.css",
},
],
],
locales: {
"/": {
lang: "zh-CN"
}
},
themeConfig,
});