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

线上 CDN 引用地址 #27

Open
xuexb opened this issue Mar 1, 2018 · 1 comment
Open

线上 CDN 引用地址 #27

xuexb opened this issue Mar 1, 2018 · 1 comment

Comments

@xuexb
Copy link
Contributor

xuexb commented Mar 1, 2018

由于很多服务要使用浏览器端的 mip-validator.js ,需要上线到 CDN 上,并且需要用大版本号或者 last 版本。

且仓库里的 dist 应该忽略提交,在 npm scripts prepublish 前编译下, npm 发布 dist

@xuexb
Copy link
Contributor Author

xuexb commented Mar 18, 2018

发现了几个现成的链接可以满足我们的需求:

jsdelivr

特点:

  • 国内有 CDN
  • 支持 HTTP2
  • 支持 npm 包抓取

cnpmjs

特点:

  • 国内单节点
  • 不支持 HTTP2
  • 支持 npm 包抓取

像其他的 bootcdn 、360CDN 、百度 CDN 等都是以白名单形式,需要单独申请。

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

No branches or pull requests

1 participant