Build process
Widgets (currently there is only 1) are build into a single file. This file is build using npm run build:webcomponents
, this builds a .es
and .umd
file. You'll really only need the .umd
file.
Running npm run build
regularly builds out the project as a SvelteKit site.
Development
Run the project like any other SvelteKit project using npm run dev
. This starts the project on localhost:5173
. During development the widgets use regular Svelte components for each widgets. The props of each component are all available as attributes for the custom element they create.