chrome-extension-typescript-starter icon indicating copy to clipboard operation
chrome-extension-typescript-starter copied to clipboard

content_script not updating

Open riccardoferretti opened this issue 5 years ago • 2 comments

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 avatar May 07 '20 17:05 riccardoferretti

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?

riccardoferretti avatar May 07 '20 18:05 riccardoferretti

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

CodeDem avatar Apr 11 '21 10:04 CodeDem