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

javascript - SvelteKit Chrome Extension - Stack Overflow

programmeradmin4浏览0评论

I am trying to use SvelteKit to make a chrome extension. From my understanding, I need a manifest.json file inside the static folder. Because chrome does not allow inline scripts, I also need a separate content.js file. However, the manifest file needs to be able to access the content.js file. To do this, I had originally put my content.js in the static folder, but then I couldn't' import any of my svelte components from src since static and src are on the same level. I am very lost on what to do in order to use svelte components for my chrome extension. Any advice would be greatly appreciated. Thank you.

发布评论

评论列表(0)

  1. 暂无评论