Skip to content
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

fix(docs/example): replace unpkg w/ jsdelivr #12964

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/docs/api/config.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ Example,
```
// external react
externals: { react: 'React' },
headScripts: ['https://unpkg.com/[email protected]/umd/react.production.min.js'],
headScripts: ['https://cdn.jsdelivr.net/npm/[email protected]/umd/react.production.min.js'],
```

Note: Do not easily set antd’s externals, as due to its many dependencies and complicated usage, many problems could occur, and it’s hard to fully explain in one or two sentences.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/docs/api/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ esbuildMinifyIIFE: true
```
// external react
externals: { react: 'React' },
headScripts: ['https://unpkg.com/[email protected]/umd/react.production.min.js'],
headScripts: ['https://cdn.jsdelivr.net/npm/[email protected]/umd/react.production.min.js'],
```

注意:不要轻易设置 antd 的 externals,由于依赖较多,使用方式复杂,可能会遇到较多问题,并且一两句话很难解释清楚。
Expand Down
6 changes: 3 additions & 3 deletions examples/libs/.umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ export default {
esbuild: true,
},
manifest: {},
styles: ['https://unpkg.com/@master/normal.css'],
styles: ['https://cdn.jsdelivr.net/npm/@master/normal.css'],
scripts: [
'https://unpkg.com/@master/style',
'https://unpkg.com/@master/styles',
'https://cdn.jsdelivr.net/npm/@master/style',
'https://cdn.jsdelivr.net/npm/@master/styles',
],
};