My first tryout with Webcomponents by using Lit. I used open-wc documentation to manually set up a simpel project to expirement with this tech.
Clone this repo to your computer.
Run cd webcomponents && npm i
In your terminal:
- First make a build
npm run build
This will watch any changes on the project - Now serve the application via the dev server in another terminal window
npm start
When the project is installed and you've started the application you should now be able to create webcomponents and import them in the index.html. When any change is made your browser should automatically reload and changes should be visible.