Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you hot reload the extension? #29

Closed
lassebomh opened this issue Apr 28, 2022 · 3 comments
Closed

How do you hot reload the extension? #29

lassebomh opened this issue Apr 28, 2022 · 3 comments

Comments

@lassebomh
Copy link

I am aware of pnpm run build and pnpm run serve:firefox for running the build but is it possible to run the extension in a state where changes in the source will automatically be updated into the browser?

@rluiten
Copy link

rluiten commented Apr 30, 2022

What works for me is

  • Run npm run dev then
  • Run npm run serve:chrome or npm run serve:firefox

This is updating the extension for me right after a change is saved.
I logged an issue earlier which meant dev wasn't working so make sure you are using at least

  • @samrum/vite-plugin-web-extension 1.0.2

@lassebomh
Copy link
Author

Thanks a lot. This was the solution I was looking for.

All the best

@davidmaxwaterman
Copy link

This helped me too. I wonder if it might be a good thing to add to the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants