Skip to content

mrscholty/web-component-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web component starter

starter for creating web components, contains a demo "hello-world" src/components/hello-world component

Dependencies

at runtime
  • uhtml (for creating HTML templates in JS)
at development time
Install npm dependencies
  • npm install
bundle third party dependencies into single ES module

npx rollup --config rollup.config.js bundles ES6 module in src/lib/vendor`

Run (using local development server) renders hello-world component

  • npm start
  • launch browser http://localhost:3000