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

content_script not updating #18

Open
riccardoferretti opened this issue May 7, 2020 · 2 comments
Open

content_script not updating #18

riccardoferretti opened this issue May 7, 2020 · 2 comments

Comments

@riccardoferretti
Copy link

Once I load the extension in chrome, changes to content_script.ts don't seem to live reload.
A few notes:

  • the generated file dist/js/content_script.js is updated
  • changes to background.ts are propagated if I refresh the devtools for the background "page"
  • changes to the popup are propagated if I close and reopen the popup

I have tried:

  • reloading the page
  • opening/closing the popup
  • clicking "update" in the extensions panel

None of that worked, the only thing that worked was removing and re-adding the extension.

Any idea of why I have having this issue?
Thanks!

@riccardoferretti
Copy link
Author

I actually just found a little reload icon from the extensions list page, which did the trick.

Still wondering, is this the way to do it? Is there a way to trigger the refresh automatically?

@CodeDem
Copy link

CodeDem commented Apr 11, 2021

@riccardoferretti , yes that's how we're supposed to do. Chrome plugin once built is not automatically reloaded.

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

2 participants