svelete-webcompo-scaffold Svelte Themes

Svelete Webcompo Scaffold

Scaffold for developing web components using svelte

Svelte Web Component

Scaffold to get started with Svelte Web Component.

  1. Build your components in src/index.svelte.
  2. npm run dev for local dev
  3. npm run build produces bundle.js in public/
  4. Use the bundle.js in your files and use your web component.
  5. <my-component> used in HTML file

customElement: true added in rollup config <svelte:options tag="my-component"> added in index.svelte

Top categories

Loading Svelte Themes