문제

My "Run as Javascript" works, but it inlines all custom elements. In the dart version the custom elements are in a separate file and since I eventually want to use these elements for integration purposes I think it would be much more cleaner to keep it like that.

Is there a way to tell pub build/"Run as Javascript" to keep the custom element definition(s) separate?

도움이 되었습니까?

해결책

You can't reuse built Polymer elements anyway so that wouldn't make sense.

You have to reuse the Dart code and build the resulting application to JS.

In-lining makes sense because the browser gets the entire application in one (or fewer) request instead of multiple calls fore each element.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top