react-content-script icon indicating copy to clipboard operation
react-content-script copied to clipboard

how can make content script to be hot reload?

Open zhuliminl opened this issue 2 years ago • 1 comments

zhuliminl avatar Dec 14 '23 09:12 zhuliminl

Should work by default with crxjs@beta

Toumash avatar Jun 29 '24 13:06 Toumash

You can use this extension Extensions Reloader, I'm using this extension more then 2 years. 🙂

devlopersabbir avatar Jul 29 '24 04:07 devlopersabbir

For some reason:

image

This extension may soon no longer be supported because it doesn't follow best practices for Chrome extensions.

crxjs@beta (currently 25 patch version) works perfecly with hot reload. For the hot reload (hot module replacement) to work with vite you need to have file export only one component. To remember this you can use eslint rule: https://github.com/ArnaudBarre/eslint-plugin-react-refresh

Toumash avatar Jul 29 '24 11:07 Toumash

HMR should work in latest version. See https://crxjs.dev/vite-plugin/getting-started/react/content-script-hmr for instructions and let me know if it still doesn't.

yosevu avatar Aug 12 '24 03:08 yosevu