chrome-extension-boilerplate-react icon indicating copy to clipboard operation
chrome-extension-boilerplate-react copied to clipboard

Fix background HMR by @tyn1998

Open octohedron opened this issue 3 years ago • 4 comments

As per this comment https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/40#issuecomment-1032384937 I extracted the fix for the HMR, and did some minor updates

  • Popup and Greetings are now tsx files
  • Added a button to the Popup with a counter as an example
  • Added an example for listening to tab changes in the background
chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
  if (changeInfo.status == 'complete') {
    console.log('Tab finished loading', tabId, tab);
    // do your things
  }
});
  • Updated the webpack config and README

TODO: Add instructions as explained in https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/40#issuecomment-1032384937

octohedron avatar Apr 02 '22 12:04 octohedron

expecting for merger

amehito avatar Apr 10 '22 13:04 amehito

it seems the package author is not active

moshOntong-IT avatar May 13 '22 17:05 moshOntong-IT

good job

VecHK avatar Jun 20 '22 01:06 VecHK

@lxieyang I know things come up (I've been there an OSS maintainer in the past). If you're not able to remain active, would you mind considering opening up shared responsibility to contributors who appear interested in helping to maintain the repo?

joshsmith avatar Aug 22 '22 00:08 joshsmith