-
Notifications
You must be signed in to change notification settings - Fork 346
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
Use web-ext to run an extension in Google Chrome #809
Comments
If Chrome doesn't have remote debugger support for auto-reloading, here is one idea for an epic, horrendous hack:
|
Hacky idea for auto-reloading which was previously implemented for Chrome: https://60devs.com/hot-reloading-for-chrome-extensions.html Source: https://github.com/xpl/crx-hotreload/blob/master/hot-reload.js |
Wow, that's cool. Thanks for the link. I guess the downside is that one would have to modify their extension source to use this approach. |
For OctoLinker, we use chrome-launch to start an isolated instance of Chrome with the extension loaded. Here's the code, if you're interested in adapting it: https://github.com/OctoLinker/browser-extension/blob/08bd7aebe3fc43c96690c2ca0dab14398810c424/scripts/chrome-launch.js |
Chrome (well a symlink to chromium on my rig) does reload the extension when I run with the following... version: |
@josephfrazier Thanks for the link. Apparently, chrome-launch does not support Chromium, only Chrome. |
Also, |
Status of this feature? Would be super handy! |
There are some changes in #868 that will make it easier to start working on Chrome support. |
@kumar303 Any updates on this feature request? Is it currently high or low priority? |
@rpl would probably be able to say! I think we are close. |
Fixed by #1392 \o/ |
This is already merged on master (and so if you want to try it before it is released on npm, you can built web-ext from the master branch), and it will soon be part of the upcoming web-ext 3.2.0 release. |
Is this a bug or feature request?
feature
What is the current behavior?
You can use web-ext run to launch an extension for development in Firefox. It creates a temporary profile and will automatically reload the extension when you change the source.
What is the expected or desired behavior?
It would be great to use
web-ext
to launch the extension like this in Chrome. I'm not sure if we can support auto-reloading or temporary profiles but at the very least we could launch chromium --load-extension=/path/to/source-dir which does a similar temporary installation for development.The text was updated successfully, but these errors were encountered: