lxieyang / chrome-extension-boilerplate-react

A Chrome Extensions boilerplate using React 18 and Webpack 5.
MIT License
3.47k stars 1.08k forks source link

Any changes to the ContentScript will force the extension to continuously reload the webpage #151

Open thianphat opened 1 year ago

thianphat commented 1 year ago

Hi, if I save changes to ContentScript, it will continuously reload the webpage I'm on. It keeps doing this unless I stop the server or manually click reload on the extension in the Chrome Extensions Developer panel. Any idea around this issue?

mistersingh179 commented 1 year ago

is this supposed to happen i.e. is by design? or is this a config issue?

noximus commented 1 year ago

i had an issue like this. apparently it was because my extension was loaded into the browser. and I was running it locally. so it was loading twice. to fix this i just removed the plugin from the extension. But now I realize that the local dev environment doesn't actually work.

HuynhVuong87 commented 1 year ago

I facet same your issue, auto reload page when content script change. Any solution? thank

horrylala commented 1 year ago

Same issue.So the HMR is not working with contentScript?