Skip to main content

All Questions

Tagged with
-1 votes
0 answers
34 views

Svelte (vite?) installing static resources

How can I make static resources (e.g. fonts/images) in a node_modules package available in a Svelte application? I'd like the process to be automatic so you don't have to do anything manual if you use ...
vogomatix's user avatar
  • 5,091
0 votes
2 answers
581 views

Svelte 5, Problem with tests, why am I getting this overload error in my vite.config file and how do I fix it?

Github Repo: https://github.com/Gaban-Ventures/crypto-basis-frontend With the latest commit you have to run npm install --legacy-peer-deps To run normal before the breaking tests, do: git co ...
Leon Gaban's user avatar
  • 39.1k
1 vote
2 answers
85 views

images paths in the build when they are provided from a JSON

I have a Svelte 5 app (not SvelteKit) where the data, including images paths, is provided from JSON. Images are in src/lib directory, as advised in the official Svelte doc. data.json: [ { &...
bolino's user avatar
  • 1,132
0 votes
0 answers
78 views

Dynamically importing two versions of a folder filled with images

I am working on a new version of my website using sveltekit. I am using svelte 5 for context. There is a page on my website that shows a bunch of screenshots from games I play. I have written a vite ...
Jazza's user avatar
  • 21