Web component that retrieves PWA manifest from web site
Web component that generates markup from manifest.
NB: One could argue that it would be more effective to implement this on the server, but what would be the fun of that?
This uses the cors anywhere proxy service, which seems to be suffering from over popularity, especially during peak hours EST.
<script src="https://cdn.jsdelivr.net/npm//@webcomponents/webcomponentsjs/webcomponents-loader.js"></script> <!-- End Polyfills --> <script type="module" src="https://firstname.lastname@example.org/ava-pwar.iife.js"></script> <script type="module" src="https://email@example.com/dist/wired-elements.bundled.min.js"></script> <script type="module" src="https://firstname.lastname@example.org/p-d.p-u.js"></script> <script type="module" src="https://email@example.com/xtal-json-editor.js"></script> <script type="module" src="https://firstname.lastname@example.org/litter-g.iife.js"></script>
Install the Polymer-CLI
First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run
npm install to install your element's dependencies, then run
polymer serve to serve your element locally.
Viewing Your Element
$ polymer serve
Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.
- MIT License
- Browser Independent