@modern-js/main-doc 2.65.4 → 2.65.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/en/apis/app/hooks/config/_meta.json +1 -0
- package/docs/en/apis/app/hooks/config/favicon.mdx +29 -0
- package/docs/en/apis/app/hooks/config/icon.mdx +3 -30
- package/docs/zh/apis/app/hooks/config/_meta.json +1 -0
- package/docs/zh/apis/app/hooks/config/favicon.mdx +29 -0
- package/docs/zh/apis/app/hooks/config/icon.mdx +3 -30
- package/package.json +3 -4
@@ -0,0 +1 @@
|
|
1
|
+
["html", "favicon", "icon", "mock", "public", "upload"]
|
@@ -0,0 +1,29 @@
|
|
1
|
+
---
|
2
|
+
title: favicon.*
|
3
|
+
sidebar_position: 3
|
4
|
+
---
|
5
|
+
|
6
|
+
# Favicon
|
7
|
+
|
8
|
+
When there is a `favicon.*` file in the `config` directory at the root of the project, Modern.js will automatically set the file to the [html.favicon](/configure/app/html/favicon) configuration option for generating the favicon icon on the page:
|
9
|
+
|
10
|
+
```
|
11
|
+
./config
|
12
|
+
└── favicon.ico
|
13
|
+
```
|
14
|
+
|
15
|
+
After the build is completed, you can see the following tags automatically generated in HTML:
|
16
|
+
|
17
|
+
```html
|
18
|
+
<link rel="icon" href="/favicon.ico" />
|
19
|
+
```
|
20
|
+
|
21
|
+
## Order
|
22
|
+
|
23
|
+
When setting up the favicon, Modern.js looks for files in the following order:
|
24
|
+
|
25
|
+
- `favicon.png`
|
26
|
+
- `favicon.jpg`
|
27
|
+
- `favicon.jpeg`
|
28
|
+
- `favicon.svg`
|
29
|
+
- `favicon.ico`
|
@@ -1,36 +1,9 @@
|
|
1
1
|
---
|
2
|
-
title: icon
|
2
|
+
title: icon.*
|
3
3
|
sidebar_position: 2
|
4
4
|
---
|
5
5
|
|
6
|
-
#
|
7
|
-
|
8
|
-
## Favicon
|
9
|
-
|
10
|
-
When there is a `favicon.*` file in the `config` directory at the root of the project, Modern.js will automatically set the file to the [html.favicon](/configure/app/html/favicon) configuration option for generating the favicon icon on the page:
|
11
|
-
|
12
|
-
```
|
13
|
-
./config
|
14
|
-
└── favicon.ico
|
15
|
-
```
|
16
|
-
|
17
|
-
After the build is completed, you can see the following tags automatically generated in HTML:
|
18
|
-
|
19
|
-
```html
|
20
|
-
<link rel="icon" href="/favicon.ico" />
|
21
|
-
```
|
22
|
-
|
23
|
-
### Order
|
24
|
-
|
25
|
-
When setting up the favicon, Modern.js looks for files in the following order:
|
26
|
-
|
27
|
-
- `favicon.png`
|
28
|
-
- `favicon.jpg`
|
29
|
-
- `favicon.jpeg`
|
30
|
-
- `favicon.svg`
|
31
|
-
- `favicon.ico`
|
32
|
-
|
33
|
-
## Apple Touch Icon
|
6
|
+
# Apple Touch Icon
|
34
7
|
|
35
8
|
When there is an `icon.*` file in the `config` directory at the root of the project, Modern.js will automatically set the file to the [html.appIcon](/configure/app/html/app-icon) configuration option for generating the Apple Touch Icon icon under the iOS system.
|
36
9
|
|
@@ -45,7 +18,7 @@ After the build is completed, you can see the following tags automatically gener
|
|
45
18
|
<link rel="apple-touch-icon" sizes="180x180" href="/static/image/icon.png" />
|
46
19
|
```
|
47
20
|
|
48
|
-
|
21
|
+
## Order
|
49
22
|
|
50
23
|
When setting up the app icon, Modern.js looks for files in the following order:
|
51
24
|
|
@@ -0,0 +1 @@
|
|
1
|
+
["html", "favicon", "icon", "mock", "public", "upload"]
|
@@ -0,0 +1,29 @@
|
|
1
|
+
---
|
2
|
+
title: favicon.*
|
3
|
+
sidebar_position: 3
|
4
|
+
---
|
5
|
+
|
6
|
+
# Favicon
|
7
|
+
|
8
|
+
当项目根目录的 `config` 目录下存在 `favicon.*` 文件时,Modern.js 会自动将该文件设置到 [html.favicon](/configure/app/html/favicon) 配置项中,用于生成页面的 favicon 图标:
|
9
|
+
|
10
|
+
```
|
11
|
+
./config
|
12
|
+
└── favicon.ico
|
13
|
+
```
|
14
|
+
|
15
|
+
构建完成后,可以看到 HTML 中自动生成了以下标签:
|
16
|
+
|
17
|
+
```html
|
18
|
+
<link rel="icon" href="/favicon.ico" />
|
19
|
+
```
|
20
|
+
|
21
|
+
## 查找顺序
|
22
|
+
|
23
|
+
在设置 app icon 时,Modern.js 会按以下顺序寻找文件:
|
24
|
+
|
25
|
+
- `favicon.png`
|
26
|
+
- `favicon.jpg`
|
27
|
+
- `favicon.jpeg`
|
28
|
+
- `favicon.svg`
|
29
|
+
- `favicon.ico`
|
@@ -1,36 +1,9 @@
|
|
1
1
|
---
|
2
|
-
title: icon
|
2
|
+
title: icon.*
|
3
3
|
sidebar_position: 2
|
4
4
|
---
|
5
5
|
|
6
|
-
#
|
7
|
-
|
8
|
-
## Favicon
|
9
|
-
|
10
|
-
当项目根目录的 `config` 目录下存在 `favicon.*` 文件时,Modern.js 会自动将该文件设置到 [html.favicon](/configure/app/html/favicon) 配置项中,用于生成页面的 favicon 图标:
|
11
|
-
|
12
|
-
```
|
13
|
-
./config
|
14
|
-
└── favicon.ico
|
15
|
-
```
|
16
|
-
|
17
|
-
构建完成后,可以看到 HTML 中自动生成了以下标签:
|
18
|
-
|
19
|
-
```html
|
20
|
-
<link rel="icon" href="/favicon.ico" />
|
21
|
-
```
|
22
|
-
|
23
|
-
### 查找顺序
|
24
|
-
|
25
|
-
在设置 app icon 时,Modern.js 会按以下顺序寻找文件:
|
26
|
-
|
27
|
-
- `favicon.png`
|
28
|
-
- `favicon.jpg`
|
29
|
-
- `favicon.jpeg`
|
30
|
-
- `favicon.svg`
|
31
|
-
- `favicon.ico`
|
32
|
-
|
33
|
-
## Apple Touch Icon
|
6
|
+
# Apple Touch Icon
|
34
7
|
|
35
8
|
当项目根目录的 `config` 目录下存在 `icon.*` 文件时,Modern.js 会自动将该文件设置到 [html.appIcon](/configure/app/html/app-icon) 配置项中,用于生成 iOS 系统下的 Apple Touch Icon 图标。
|
36
9
|
|
@@ -45,7 +18,7 @@ sidebar_position: 2
|
|
45
18
|
<link rel="apple-touch-icon" sizes="180x180" href="/static/image/icon.png" />
|
46
19
|
```
|
47
20
|
|
48
|
-
|
21
|
+
## 查找顺序
|
49
22
|
|
50
23
|
在设置 app icon 时,Modern.js 会按以下顺序寻找文件:
|
51
24
|
|
package/package.json
CHANGED
@@ -15,14 +15,13 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.65.
|
18
|
+
"version": "2.65.5",
|
19
19
|
"publishConfig": {
|
20
20
|
"registry": "https://registry.npmjs.org/",
|
21
|
-
"access": "public"
|
22
|
-
"provenance": true
|
21
|
+
"access": "public"
|
23
22
|
},
|
24
23
|
"dependencies": {
|
25
|
-
"@modern-js/sandpack-react": "2.65.
|
24
|
+
"@modern-js/sandpack-react": "2.65.5"
|
26
25
|
},
|
27
26
|
"devDependencies": {
|
28
27
|
"@rspress/shared": "1.42.0",
|