6 ms·
Do you have REPL both for background and content scripts? I tried to use clojurescript for Chrome extensions few years ago but failed to configure fast reload
by ungzd 9y ago
Do you have REPL both for background and content scripts?
I tried to use clojurescript for Chrome extensions few years ago but failed to configure fast reload cycle (either repl or figwheel).
- jdormit 9y agoNo. In fact, the development cycle on this was pretty awful - due to browser extensions' strict CSP, I couldn't even compile the CLJS with {:optimizations :none}, so every code change took ~20 seconds to recompile. Do you know any good resources on REPL-driven ClojureScript development? Preferably with a REPL that lives in the page environment so that browser variables etc. can be accessed.
- ungzd 9y agoChromex-sample (https://github.com/binaryage/chromex-sample https://github.com/binaryage/chromex-sample) mentions :optimizations :none and figwheel support (but with disabled repl), but I didn't try it yet.
- jdormit 9y agoInteresting, looks like they got :optimizations :none to work for background scripts but not content scripts (which makes sense). Figwheel support sounds great, I'll look into adding that to Looped In.