[英]polymer build on a Polymer Element containing multiple child elements
我對如何構建聚合物元素1.x感到有點困惑,通過運行$ polymer init
來搭建
到目前為止我做了什么:
運行$ polymer init
在ES6中編寫我的元素而不更改任何目錄結構/路徑。
運行$ polymer build
它與通過運行$ polymer init
而在目錄/路徑引用中沒有任何更改而創建的結構相同。
/bower_components
/demo/index.html
/test/my-element_test.html
/test/child-element_test.html
my-element.html
child-element.html
bower.json
polymer.json
index.html
README.md
我想創建我的元素的內置版本,從ES6轉換為ES5。
理想情況下,我的項目結構如下所示:
/bower_components
/demo/index.html
/build/bower_components
/build/my-element-es5.html
/build/child-element-es5.html
/test/my-element_test.html
/test/child-element_test.html
my-element.html
child-element.html
bower.json
polymer.json
index.html
README.md
運行$ polymer build
只會創建一個build/default/index.html
,它只包含一個引用我的元素的<iron-component-page>
。
$ polymer build
是否可以使用$ polymer init
創建的單個元素,還是僅適用於app風格的項目?
如果它適用於純元素,我在這里缺少什么?
注意:我的元素'project'包含2個元素, my-element.html
和child-element.html
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.