英文:
How do I find the Subresource Integrity (SRI) code for the debug version of bootstrap 5?
问题
Bootstrap 5.3.0-alpha3托管在JsDelivr网络上。我可以在这个链接https://www.jsdelivr.com/package/npm/bootstrap?tab=stats 上看到。我可以右键点击复制图标,并复制缩小版本的SRI代码。但是,我在哪里找到非缩小/调试版本的资源的SRI代码呢?
这是缩小版本的链接:
https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js
这是非缩小版本的链接:
https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.js
英文:
Bootstrap 5.3.0-alpha3 is hosted on JsDelivr network. I can see that on this link https://www.jsdelivr.com/package/npm/bootstrap?tab=stats
I can right click the copy icon and copy the SRI code for the minified version. But where do I find the SRI code for the non-minified/debug version of the resource?
This is the minified version
https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js
This is the un-minified version.
https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.js
答案1
得分: 0
我最终使用了一个类似于https://www.srihash.org的SRI哈希生成器。
英文:
I ended up using an SRI Hash generator like https://www.srihash.org
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论