chore:前端生成规则优先使用国内可访问 CDN
This commit is contained in:
parent
86722a09a7
commit
4809b8da0f
|
|
@ -12,6 +12,16 @@ The user provides frontend requirements: a component, page, application, or inte
|
|||
|
||||
**MANDATORY**: The entry HTML file MUST be named `index.html`. This is a strict requirement for all generated frontend projects to ensure compatibility with standard web hosting and deployment workflows.
|
||||
|
||||
### CDN Requirement (China-Friendly)
|
||||
|
||||
When generating plain HTML projects that reference third-party JS/CSS from CDN, prefer China-friendly CDN links by default:
|
||||
|
||||
1. `https://cdn.bootcdn.net` (preferred)
|
||||
2. `https://cdn.staticfile.net` (fallback)
|
||||
3. `https://registry.npmmirror.com` (for npm package file URLs when needed)
|
||||
|
||||
Avoid `unpkg.com` and `cdnjs.cloudflare.com` as primary CDN links in generated HTML.
|
||||
|
||||
## Design Thinking
|
||||
|
||||
Before coding, understand the context and commit to a BOLD aesthetic direction:
|
||||
|
|
|
|||
Loading…
Reference in New Issue