4 ms·
Little known fact: web-ext not only can launch both Firefox and Chrome in a new profile with the extension preloaded, but it will also refresh them when any of
by bamboleo 6y ago
Little known fact: web-ext not only can launch both Firefox and Chrome in a new profile with the extension preloaded, but it will also refresh them when any of the extensions’ files changes.
It’s game changing.
- diggan 6y agoHeh, once you want even tighter feedback than just reloading the extension itself, try out developing a extension with ClojureScript ;) https://github.com/binaryage/chromex https://github.com/binaryage/chromex is a good starting point if you're curious.
- felixfbecker 6y agoNot really. I would prefer to keep my profile which has all my history, sessions etc instead of launching a new Firefox every time. Reloading extensions is really not that hard, especially with something like https://chrome.google.com/webstore/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid https://chrome.google.com/webstore/detail/extensions-reloade...
- diggan 6y agoI'm sorry, but I seem to not understand how that extension is better than web-ext. web-ext reloads the extension automatically when it changes on disk, "Extensions Reloader" seems to require you to either click a button to reload, or setup your build system to redirect current browser session to "http://reload.extensions http://reload.extensions", both inferior solutions to just using web-ext.
- bamboleo 6y agoMe too, in fact it has a —preserve-changes flag (or something like that) that combined with the -p flag let’s you have a profile just for development.
- jerrygoyal 6y ago> it will also refresh them when any of the extensions’ files changes. I don't see that in the docs. would it support webpack? for now, I'm using webpack-extension-reloader plugin for an extension I built for Notion.so and it works (reload) for chrome. https://github.com/GorvGoyl/Notion-Boost-browser-extension https://github.com/GorvGoyl/Notion-Boost-browser-extension
- bamboleo 6y agoIt’s unrelated to the build, it works even if you edit files directly. The downside of this is that it means no HMR support whatsoever.