wc_menu_demo
v0.5.0
Published
Sample repository for WebComponents project using [lit-element](https://github.com/polymer/lit-element) with [Webpack](https://github.com/webpack/webpack) works on ES5~ environment.
Downloads
3
Readme
webpack-lit-element-sample
Sample repository for WebComponents project using lit-element with Webpack works on ES5~ environment.
Prerequiements
How to start
$ yarn
$ yarn dev
Then visit http://localhost:3000!
How to build
yarn build
This will create dist
directory.
If you check bundled app, please run below.
yarn serve
This 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-classes
plugin and add"LitElement"
(when you uselit-element
) or"HTMLElement"
(when you extend nativeHTMLElement
) to<pluginOption>.globals
in Babel config. You can see it in this repository atbabel.plugins
inpackage.json
. - lit-element is not a stable.
- There are known issues.
- This is unofficial sample repository :smirk_cat: