Closed mutsys closed 6 years ago
Follow up: I tried using polymer-bundler
from the Polymer project and it did exactly what I wanted: create a single file containing api-console
and all of its dependencies that works as expected. I am closing this issue since I was able to find an alternative solution.
I've been trying to use
api-console-builder
to create a package that I can load up the minimized assets in a browser and then programmatically setting theraml
attribute ofapi-console
. However, when I use the artifacts produced by the build, setting theraml
attribute has no effect. I can inspect the state of the browser and see that scripts seem to load without any apparent errors, no messages show in the console,api-console
has araml
attribute containing the expanded, enhanced RAML object and the<api-console>
element has no children or content.I run the builder as follows:
load it up in the browser:
and the at some point:
once the document has loaded and web components are ready where
ramObject
is an expanded, enhanced RAML definition. This same approach works as expected using the unbundledapi-console
via link/import:Should I expect this to work or must I defined values for
api
and/orapiType
?My guess right now is that there is something that I am failing to do upon setting up/loading the build artifacts in the browser. This is based on having tried to accomplish what I want three different ways (
api-console-cli
,api-console-builder
and using webpack withpolymer-webpack-loader
) each of which produces the same result.