Closed Valexr closed 2 years ago
Can you make a simple repo where I can try this out? I've not used SvelteKit before, and setting kit.vite
seems to override SvelteKit's internal vite config and breaks all types of things.
It's very simple... Just:
npm init svelte@next my-app
routes/index.svelte
script section, like in yours readme examples 🤷🏻♂️
By default assets live in static
folder...To import them as Svelte components, your SVG should be in src
. Not static
.
ok
SvelteKit booked import with
.svg.svelte
extensions...