ecoder
ecoder

Reputation: 23

SvelteKit Chrome Extension

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.

Upvotes: 0

Views: 27

Answers (0)

Related Questions