Fork me on GitHub
#figwheel-main
<
2020-04-22
>
curlyfry19:04:37

Hi, does anyone have a nice example of adding devcards as an :extra-main? I was a little surprised it was not part of the figwheel main template (nor the readme for devcards)

curlyfry20:04:05

Yes, that's definitely part of it! I'm finding it a little tricky to piece together the documentation in the devcards repo with the figwheel main docs to actually get a running devcards page

curlyfry20:04:05

I need to add the :extra-main, a separate html file, and a separate folder with my devcards cljs files?

mkvlr20:04:13

you only need a seperate html file, and set :devcards true in the compiler settings, that’s it

mkvlr20:04:28

the seperate html file can be the same as your regular html but also have a [:script "devcards.core.start_devcard_ui_BANG__STAR_()"] in it