chore:前端生成规则优先使用国内可访问 CDN

This commit is contained in:
肖应宇 2026-04-03 11:27:03 +08:00
parent 86722a09a7
commit 4809b8da0f
1 changed files with 10 additions and 0 deletions

View File

@ -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: