Fork me on GitHub
#lein-figwheel
<
2016-11-16
>
grav14:11:59

How do I merge in a new server-port to the “default” config (`(figwheel-sidecar.config/fetch-config)`)?

grav14:11:21

I’ve tried (merge (figwheel-sidecar.config/fetch-config) {:figwheel-options {:server-port 3450}}) but the new port isn’t recognized

grav14:11:47

Ah … I needed to wrap it in a :data map, ie (merge (figwheel-sidecar.config/fetch-config) {:data {:figwheel-options {:server-port 3450}}})

grav14:11:11

All hail to the data that is identified by :data 😉

grav14:11:58

Hmm … seems it doesn’t really work. It’s not getting :build-ids and :all-builds. There’s missing an easy way to just specify additional params. Currently it’s something like slurping the project.clj and then parsing :build-ids and :all-builds. Unless I’m missing something