So I'm migrating from MV2 to MV3 and have quite an issue. On MV2 I've used
"background": {
"page": [
"background.html"
],
},
On MV3, we have service worker, which accepts only .js files. My background.html is being injected with webpack scripts. And was running then in the background obviously. As for now, I'm unable to inject or load my scripts to background.js file. There are a lot of scripts and moving everything to background.js is just nonsense I think.
I've tried iframing my background.html into index.html (front-end), so it would run together, but then I'm facing Extension manifest must request permission to access this host error. Meaning I am unable to access chrome:// URL's. Maybe are there any more options to somehow run background.html together with index.html and just keep service worker very simple?