lxieyang / chrome-extension-boilerplate-react

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

Content Script is only running when npm run build, I can't run it with npm start It's not seen #210

Open RobertoJoseph opened 2 months ago

RobertoJoseph commented 2 months ago

I have to run npm run build everytime I change a line of code in Content Script so I can see the changes on the web.

girish3 commented 2 months ago

I am facing the same issue. For some reason, Content Script changes are not reflecting. I followed the Readme section and excluded it from hot reloading. Only npm run build works.

RobertoJoseph commented 2 months ago

Hey @girish3 I got a solution for it.

Go to webserver.js file and make the https property to true in the WebpackDevServer.

girish3 commented 2 months ago

https property change to true worked! 🎉 Thanks @RobertoJoseph 🙏