Skip to content

docs: specify version in CDN URLs - #118

Open
hyunbinseo wants to merge 1 commit into
ChartsCSS:mainfrom
hyunbinseo:patch-1
Open

docs: specify version in CDN URLs#118
hyunbinseo wants to merge 1 commit into
ChartsCSS:mainfrom
hyunbinseo:patch-1

Conversation

@hyunbinseo

Copy link
Copy Markdown

Both CDN supports semver in the URL.

Specifying v1 is advised to avoid unexpected breaking changes.


use a version range instead of a specific version

https://cdn.jsdelivr.net/npm/jquery@3.6/dist/jquery.min.js
https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js

omit the version completely to get the latest one. you should NOT use this in production

https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js

You may also use a semver range or a tag instead of a fixed version number, or omit the version/tag entirely to use the latest tag.

https://unpkg.com/react@^16/umd/react.production.min.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant