<<<<<<< HEAD
=======
A simple Hello World for LitElement.
https://lit-element-web-components.firebaseapp.com/
npm install -g polymer-cli
git clone https://github.com/PolymerLabs/lit-element-web-components
cd lit-element-web-components
npm install
polymer serve
git clone https://github.com/PolymerLabs/lit-element-web-components
npm install -g polymer-cli
cd lit-element-web-components
npm install
polymer serve
- In index.html, update metadata stuff:
<!-- Change stuff here for your app -->
<meta name="description" content="lit-element-web-components">
<meta name="theme-color" content="#ffffff">
<title>lit-element-web-components</title>
- In index.html, uncomment the service worker registration code:
<!-- Register service worker if supported. -->
<!--
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js');
}
</script> -->
- In manifest.json, update the app description, etc:
"description": "lit-element-web-components",
"start_url": "index.html",
"name": "lit-element-web-components",
"short_name": "start-lit-el",
"background_color": "#ffffff",
"theme_color":"#ffffff",
-
Update your package.json if required
-
In polymer.json, update your shell & entrypoint if required
"shell": "src/lit-element-web-components.js",
"entrypoint": "index.html",
- Remember to update firebase.json and .firebaserc for a real deployment!
Build your project and serve the build locally:
polymer build
polymer serve build/default
If you changed significant stuff (e.g. filenames, folder structure, installed other modules, etc), edit your polymer.json file to configure your build correctly. See the Polymer CLI documentation for more info.
-
Update firebase.json and .firebaserc with your own app details.
-
Deploy.
firebase deploy
See the Firebase CLI Reference for more info.
At the time of writing (Dec 11 2018) this app was scoring 100% on all Lighthouse audits when deployed, and was working fine on the most recent versions of Chrome, Safari, Firefox, and Edge.
Let me know of any issues.
(All browsers) Dynamic import
warning:
Could not resolve module specifier "require" in file "..src/lit-element-web-components.js".
See Polymer/tools#131.
(IE11 and Edge) Warning due to <!--!
in built HTML:
Unexpected character: U+0021 EXCLAMATION MARK (!)
Unexpected character in comment end. Expected "-->"
See https://github.com/Polymer/polymer-cli/issues/779.
92d9ac8... Initial Commit