How to load Polymer components from multiple hosts?

时间:2015-07-28 23:49:59

标签: javascript polymer web-component polymer-1.0

I am attempting to use Polymer components loaded onto a page from multiple hosts. This causes an error as each component includes it's own local Polymer.html from each host. See Polymer Github issue #357:

https://github.com/Polymer/polymer/issues/357

As a remedy I want to point all of my components to a public Polymer.html however there is no official Polymer CDN. Is another solution possible?

1 个答案:

答案 0 :(得分:1)

在Polymer Web Startet套件中,所有Polymer元素都添加到单个elements.html中,然后vulcanize将它们合并为一个导入。

或者你可以使用Polymer Magic Server,但这相当于开发而不是生产。