non-biased-news @non-biased-news

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.

Oct 11, 2022, 3:36 AM
18

comments

too bad, use node.js

the api is written in python

thats sounds like a you problem and not a me problem

wdym, svelte is a compiler, you need it downloaded to do anything

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

it’s impossible, just install npm