File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import theme from "./theme.js";
5
5
6
6
7
7
export default defineUserConfig ( {
8
+
8
9
base : "/" ,
9
10
10
11
lang : "zh-CN" ,
@@ -13,6 +14,18 @@ export default defineUserConfig({
13
14
14
15
theme,
15
16
17
+ // index.html中注入 head 参考:https://theme-hope.vuejs.press/zh/guide/customize/font.html#%E4%BA%BA%E4%BA%BA%E7%94%9F%E8%80%8C%E8%87%AA%E7%94%B1
18
+ head : [
19
+ [
20
+ `link` ,
21
+ { rel : `stylesheet` , href : `https://cdn.jsdelivr.net/npm/@docsearch/css@3` }
22
+ ] ,
23
+ [
24
+ `script` ,
25
+ { src : `https://cdn.jsdelivr.net/npm/@docsearch/js@3` }
26
+ ]
27
+ ] ,
28
+
16
29
// 对更低版本的浏览器提供支持
17
30
extendsBundlerOptions : ( config , app ) => {
18
31
addViteConfig ( config , app , {
@@ -24,17 +37,7 @@ export default defineUserConfig({
24
37
} ) ;
25
38
} ,
26
39
27
- // index.html中注入 head 参考:https://theme-hope.vuejs.press/zh/guide/customize/font.html#%E4%BA%BA%E4%BA%BA%E7%94%9F%E8%80%8C%E8%87%AA%E7%94%B1
28
- head : [
29
- [
30
- "link" ,
31
- { rel : "stylesheet" , href : "https://cdn.jsdelivr.net/npm/@docsearch/css@3" }
32
- ] ,
33
- [
34
- "script" ,
35
- { src : "https://cdn.jsdelivr.net/npm/@docsearch/js@3" }
36
- ]
37
- ]
40
+
38
41
39
42
// 和 PWA 一起启用
40
43
// shouldPrefetch: false,
You can’t perform that action at this time.
0 commit comments