最近,我在我的网站上添加了一些Paper-Elements,但我找不到他们元素的托管脚本和链接。我真的懒得把所有的js和css文件上传到我的网站上。那么,在最新版本中,有没有理由让聚合物删除托管链接呢?或者他们没有移除它?
发布于 2015-10-12 14:23:31
不知道他们为什么要移除它或对它做任何事情,但你可以使用http://polygit.org/。
<script src="https://rawgit.com/webcomponents/webcomponentsjs/master/webcomponents.js"></script>
<base href="http://polygit.org/polymer:+v1.1.0/components/">
<link rel="import" href="polymer/polymer.html">
...对于生产部署,我建议将其固化为:https://github.com/polymer/vulcanize。
https://stackoverflow.com/questions/33070625
复制相似问题