0.5.0 • Published 6 years ago
wc_menu_demo v0.5.0
webpack-lit-element-sample
Sample repository for WebComponents project using lit-element with Webpack works on ES5~ environment.
Prerequiements
How to start
$ yarn
$ yarn devThen visit http://localhost:3000!
How to build
yarn buildThis will create dist directory.
If you check bundled app, please run below.
yarn serveThis will serve contents under dist on http://localhost:8080.
Things you should care
- If you transpile WebComponents code into ES5 by babel,
you need to set
babel-plugin-transform-builtin-classesplugin and add"LitElement"(when you uselit-element) or"HTMLElement"(when you extend nativeHTMLElement) to<pluginOption>.globalsin Babel config. You can see it in this repository atbabel.pluginsinpackage.json. - lit-element is not a stable.
- There are known issues.
- This is unofficial sample repository :smirk_cat: