samrum / vite-plugin-web-extension

A vite plugin for generating cross browser platform, ES module based web extensions.
MIT License
325 stars 32 forks source link

Extension works only after reload in extension manager #80

Open hffxx opened 1 year ago

hffxx commented 1 year ago

Currently working on redirecting extension, but it seems to work only after reload in extension manager. When i close the browser the popup and contentScript seems to work but scripts from background not. Any clue why?

samrum commented 1 year ago

Manifest V2 or V3? Not working how? A reproducible example would be helpful.

Timeraa commented 1 year ago

The only thing I can think of is that they closed the dev server which would make sense since they are served via a localhost uri to allow for HMR. Not having any issues regarding restarting the browser etc. causing any issues.