Using Svelte with Custom HTML Prompts

Good point.

Svelte has the following output options:

bundleStrategy?: 'split' | 'single' | 'inline';

[...]

If 'single', creates just one .js bundle and one .css file containing code for the entire app.

If 'inline', inlines all JavaScript and CSS of the entire app into the HTML. The result is usable without a server (i.e. you can just open the file in your browser).

Configuration • Docs • Svelte

So you can develop in the preferred way (using multiple components/files and imports/exports) and ultimately output either 3x files (html, css, js) or a single html file.


This post briefly describes using Svelte with KM + Custom HTML Prompt:

1 Like