Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1882

Svelte (vite?) installing static resources

$
0
0

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 all articles
Browse latest Browse all 1882

Trending Articles



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