Quantcast
Viewing latest article 23
Browse Latest Browse All 1630

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 a different version of package (assuming package is consistent with where it stores its assets)

e.g. the package is

node_modules|-package   |-assets      |-fonts        font1.woff        font2.woff      |-images        image1.img        image2.img

I presume I need to get them into the static directory in some way or alternatively have the assets directory supplied as an additional source of static files.


Viewing latest article 23
Browse Latest Browse All 1630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>