最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Svelte (vite?) installing static resources - Stack Overflow

programmeradmin2浏览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.

发布评论

评论列表(0)

  1. 暂无评论