non-biased-news — 10/11/2022, 3:36:04 AM

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.

♥ 3 ↩ 0 💬 18 comments

comments

late:

too bad, use node.js

10/11/2022, 12:11:59 PM
non-biased-news:

the api is written in python

10/11/2022, 2:02:20 PM
late:

thats sounds like a you problem and not a me problem

10/11/2022, 2:03:37 PM
non-biased-news:

idc

10/11/2022, 2:07:09 PM
frostzzone:

not for long 😈

10/11/2022, 2:28:23 PM
non-biased-news:

>:(

10/11/2022, 2:35:45 PM
non-biased-news:

I will write my api and use my. you can still do it though :)

10/11/2022, 2:39:33 PM
frostzzone:

:]

10/11/2022, 2:46:16 PM
non-biased-news:

ok

10/11/2022, 2:55:59 PM
wynd:

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

10/11/2022, 10:28:44 AM
non-biased-news:

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

10/11/2022, 2:04:26 PM
wynd:

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

10/11/2022, 6:08:36 PM
non-biased-news:

the api is written in python

10/11/2022, 6:13:16 PM
wynd:

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

10/11/2022, 6:23:56 PM
non-biased-news:

the api is on the same domain

10/11/2022, 6:31:18 PM
wynd:

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

10/11/2022, 6:35:14 PM
non-biased-news:

hmm.. i’ll think

10/11/2022, 7:44:34 PM
lily:

it’s impossible, just install npm

10/11/2022, 7:30:26 AM