Folder www/

The www folder contains the static content to promote or demo your component. It is automatically rendered and refreshed in the Website tab on right side.

Local files

Other files in the folder can be accessed


<link rel="stylesheet" href="style.css" />

Link to other pages

Other pages in the folder can be linked


<a href="page2.html"></a>

Access Component Code

Compiled code from the Code folder can be accessed with ./dist


<script type="module" src="./dist/index.js"></script>

Full example

Loading a custom-element <my-counter> from the compiled code.


<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<link rel="stylesheet" href="./style.css" />
<script type="module" src="./dist/my-counter.js"></script>

Welcome to the counter demo page!