2017-01-18 17:36 GMT+01:00 Alex Harui <aha...@adobe.com>: > > I don't think inject_html knows how to include a separate .js file in the > output. Any scripts referenced have to have URLs somewhere else. That > could be changed, but doesn't work the way I think you want it to work > right now. >
Ok Alex, just see what you try to explain. I can put the dialog polyfill in the final project resources to be copied to target, but I think the right way should be that this kind of resources be provided by the MDL swc and copied from that library. Then as the inject_html is in the Dialog.as component, if the user instantiate one Dialog, the index.html gets the css and js references to load it, if is not used the index doesn't get those, that is very convenient. So should a SWC library that needs a external JS copy the js scripts to target folder? My guest is that this would be ok. What you guys think about it? -- Carlos Rovira http://about.me/carlosrovira