Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reloading content_scripts does not work #25

Closed
Toumash opened this issue Feb 9, 2021 · 1 comment · May be fixed by #28
Closed

Hot reloading content_scripts does not work #25

Toumash opened this issue Feb 9, 2021 · 1 comment · May be fixed by #28

Comments

@Toumash
Copy link

Toumash commented Feb 9, 2021

Is hot reloading of content_scripts supported?

Steps to reproduce

  1. clone the repo
  2. npm i; npm run start:chrome - see the default console log
  3. change src/content_scripts/index.js to `console.info('HOT RELOAD IS WORKING!')
  4. reload the page
  5. console.log does not change :<

When i go into chrome://extension, click reload, and the reload the page - contents of console.log changes

@Toumash
Copy link
Author

Toumash commented Mar 4, 2021

This repository solves this problem https://github.com/xpl/crx-hotreloadU
You only need to drop hot-reload.js into src/lib/js/hot-reload.js and add the background script declaration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant