Shamelessly ripped from xpl/crx-hotreload to verify npm imports worked. See xpl/crx-hotreload#9 and last release date.
No more manual reloading of unpacked chrome extensions when developing!
In your manifest.json
:
"permissions": ["management", "activeTab"]
management
allows for reloading the chrome extension (required)activeTab
allows for logging status to the current tab (optional)
In your background
script:
import "crx-livereload";
Build, watch and see the automagic happen.