Skip to content

[docs] change code samples to import by name with inline script #273

@ghost

Description

I would suggest importing by name with inline script instead and let the tools will handle the resolution:

<script type=module>
import 'package-name/existing-element.js';
</script>

This is what we did for PolymerElement demos (e.g. https://github.com/PolymerElements/iron-list/blob/master/demo/index.html#L20).

Originally posted by @keanulee in #263

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions