aklinker1 / vite-plugin-web-extension

Vite plugin for developing Chrome/Web Extensions
https://vite-plugin-web-extension.aklinker1.io/
MIT License
656 stars 57 forks source link

HMR #23

Closed srcrip closed 2 years ago

srcrip commented 2 years ago

Hi,

I see that there's a problem with manifest v3 and this branch: https://github.com/aklinker1/vite-plugin-web-extension/pull/14

Nonetheless, maybe this could get merged in with just a way to turn it off for v3 for now? And once they fix the underlying bug in chrome it can be fully turned on for v3?

aklinker1 commented 2 years ago

I'll see if I can get the PR cleaned up tonight, I don't remember how close it is to being ready.

aklinker1 commented 2 years ago

This has been merged. The only thing you should have to do is change your scripts from

vite build --watch

to

vite dev

And then it should just work. I wasn't able to testing this against a wide varity of projects, so if you have problems getting it up and running, feel free to re-open this issue

srcrip commented 2 years ago

Wow, thanks a ton, that was fast!