webpack-extension-reloader icon indicating copy to clipboard operation
webpack-extension-reloader copied to clipboard

Hot reload only the active tab.

Open shadab14meb346 opened this issue 2 years ago • 1 comments

Type:

  • [ ] bug
  • [ ] feature
  • [ ] enhancement
  • [x] question

Environment:

  • OS:Linux
  • Browser: Chrome
  • Library Version: ^1.1.4

I'm going to open a PR:

  • [ ] yes
  • [x] no

Description: I currently below is my config

 new ExtensionReloader({
        port: 9090,
        reloadPage: true,
        entries: {
          // TODO: reload manifest on update
          contentScript: "contentScript",
          background: "background",
          extensionPage: ["popup", "options"],
        },
      })

Whenever a change is there it reloads all of the tabs to which my chrome extension has access. Is there a way to just reload the active tab?

shadab14meb346 avatar Jan 12 '22 10:01 shadab14meb346

for me reload works only on contentScript and background not extensionPage: ["popup", "options"],

sherifmayika avatar Aug 18 '22 04:08 sherifmayika