在聚合物3中使用Google Web Components元素 [英] Using Google Web Components elements in polymer 3
问题描述
我们如何在聚合物3中安装Google Web Components元素
How can we install Google Web Components elements in polymer 3
示例-使用google-youtube或更多元素尚不支持npm安装!
Example - using google-youtube or many more elements can't support npm install yet!
https://www.webcomponents.org/element/GoogleWebComponents/google-youtube
有人发现要为聚合物3安装它吗?
Is anyone figured out installing this for polymer 3.
推荐答案
您可以尝试安装它将聚合物调制器
You could try to install it will polymer modulizer
npm install -g polymer-modulizer
您还需要安装凉亭,然后在您的存储库中运行
you'll need to have bower installed as well, then in your repo you can run
modulizer GoogleWebComponents/google-youtube
将下载该组件并将其转换为文件夹modulizer_workspace
that will download and convert the component to the folder modulizer_workspace
https://github.com/Polymer/polymer-modulizer#workspace-mode
这篇关于在聚合物3中使用Google Web Components元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!