-
-
Notifications
You must be signed in to change notification settings - Fork 363
docs: update content #1397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update content #1397
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -185,35 +185,32 @@ export default defineConfig({ | |||||||||
| }) | ||||||||||
| ``` | ||||||||||
|
|
||||||||||
| <<<<<<< HEAD | ||||||||||
| ## build.manifest {#build-manifest} | ||||||||||
| ======= | ||||||||||
| ## build.license | ||||||||||
| ## build.license {#build-license} | ||||||||||
|
|
||||||||||
| - **Type:** `boolean | { fileName?: string }` | ||||||||||
| - **Default:** `false` | ||||||||||
|
|
||||||||||
| When set to `true`, the build will generate a `.vite/license.md` file that includes all bundled dependencies' licenses. It can be hosted to display and acknowledge the dependencies used by the app. When `fileName` is passed, it will be used as the license file name relative to the `outDir`. An example output may look like this: | ||||||||||
| 当设置为 `true` 时,构建过程将生成一个 `.vite/license.md` 文件,其中包含所有打包依赖项的许可证信息。该文件可以被托管,用于展示和确认应用程序所使用的依赖项。当传入 `fileName` 参数时,它将被用作相对于 `outDir` 的许可证文件名。示例输出可能如下所示: | ||||||||||
|
|
||||||||||
| ```md | ||||||||||
| # Licenses | ||||||||||
| # Licenses {#licenses} | ||||||||||
|
||||||||||
| # Licenses {#licenses} | |
| # Licenses |
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading anchor {#dep-1-1-2-3-cc0-1-0} is unnecessary for a markdown example output. Remove the anchor as this is showing example license file content, not documentation structure.
| ## dep-1 - 1.2.3 (CC0-1.0) {#dep-1-1-2-3-cc0-1-0} | |
| ## dep-1 - 1.2.3 (CC0-1.0) |
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The explicit anchor ID '{#dep-1-1-2-3-cc0-1-0}' for an example dependency entry is unnecessary. Since this is sample output showing what the license file format looks like, these headings don't need custom anchors and adding them may confuse readers about whether they need to include anchors in their actual license files.
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading anchor {#dep-2-4-5-6-mit} is unnecessary for a markdown example output. Remove the anchor as this is showing example license file content, not documentation structure.
| ## dep-2 - 4.5.6 (MIT) {#dep-2-4-5-6-mit} | |
| ## dep-2 - 4.5.6 (MIT) |
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the previous comment, the explicit anchor ID '{#dep-2-4-5-6-mit}' for this example dependency is unnecessary and should be removed. Example code blocks should remain clean and representative of actual output without documentation-specific markup.
| ## dep-2 - 4.5.6 (MIT) {#dep-2-4-5-6-mit} | |
| ## dep-2 - 4.5.6 (MIT) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -196,7 +196,7 @@ HTML 文件位于 Vite 项目的[最前端和中心](/guide/#index-html-and-proj | |||||
| - 或仅当 `property` 属性匹配以下值时:`og:image`,`og:image:url`,`og:image:secure_url`,`og:audio`,`og:audio:secure_url`,`og:video`,或 `og:video:secure_url` | ||||||
|
|
||||||
| ```html {4-5,8-9} | ||||||
| <!doctype html> | ||||||
| <!DOCTYPE html> | ||||||
|
||||||
| <!DOCTYPE html> | |
| <!doctype html> |
Uh oh!
There was an error while loading. Please reload this page.