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

docs: specify version in CDN URLs #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hyunbinseo
Copy link

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant