Sorry about the non news, but does anyone know how to embed Svelte/kit code in an HTML file? (w/ out doing npm or server stuff) @jeffalo @late and @oren if you are here.

comments (single view)

i want to do this: https://stackoverflow.com/questions/61966179/run-a-svelte-app-from-file-with-no-sever

but without using npm to build it

or at least have a svelte component in html

that’s not how that works, use npm lol, do you have any reason you can’t use it?

the api is written in python

since the api is separate from the site, you can just deploy the svelte app separately. it also compiles into html

the api is on the same domain

either use 2 domains, or create the app in a different repo, build it client side, and then but the build in the original repo

See more replies
View all comments