Fork me on GitHub
#lein-figwheel
<
2016-05-31
>
jamesmintram11:05:12

OK - finally got it to work! Interestingly running “lein figwheel” picked up some errors that “lein repl + other commands” did not (Such as a config option being in the wrong place in the Project.clj)

bhauman12:05:44

@jamesmintram: yep, the next release moves config validation down so that it works at a lower level

jamesmintram12:05:28

That’s awesome! Any advice around it not supporting profile merging? ie any tips in structuring your project.clj to get the benefits of splitting dev/prod config?

bhauman13:05:36

@jamesmintram: there is really no need to split out your :figwheel and :cljsbuild configs at all.

bhauman13:05:31

they are just data so they won't affect any runtime environment,

bhauman13:05:01

:figwheel is devtime only and :cljsbuild let's you have as many builds as you need

jamesmintram13:05:24

@bhauman: Ah OK thanks. That makes sense. It hadn’t occurred to me that the figwheel stuff would be ignored during a production build! I guess all the examples/templates I have seen keep the Figwheel stuff inside of a dev profile. Thanks 🙂

bhauman13:05:39

@jamesmintram: which templates? reagent-figwheel is correct. And I'm currently posting an issue on chestnut.

jamesmintram13:05:46

I think I used “lein new reagent” - I can check

jamesmintram13:05:34

Yeah - so

lein new reagent
sticks the :figwheel config inside of: profiles dev

bhauman13:05:43

Cool thanks, posted an issue there as well.