bhauman / devcards

Devcards aims to provide a visual REPL experience for ClojureScript
1.53k stars 116 forks source link

Using with figwheel.main #143

Closed ychakiris closed 5 years ago

ychakiris commented 5 years ago

I haven't tried it yet but I assume this will work with figwheel.main if we put the right dependencies in (e.g. taking the dependencies our ot the current project.clj file).

tlamr commented 5 years ago

It seems trivial to add it through extra mains feature, however it does not work for me since there is no way (imho) how to currently pass {:devcards true} as compiler param, hence devcards macro will not pass (utils/devcards-active?) guard

bhauman commented 5 years ago

You just need to add :devcards true to your clojurescript compiler options.

{:main example.core
  :asset-path ....
  :devcards true}
tlamr commented 5 years ago

ah! brilliant! Works perfectly :)

Thanks!