Skip to content

Commit

Permalink
Parameterize server-port
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmsparks committed Sep 16, 2018
1 parent 71d83fc commit c20ece5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/juxt/kick/alpha/providers/figwheel.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@
files')})))

(defmethod kick/init! :kick/figwheel
[_ {:keys [builds]} {:kick.builder/keys [target classpath-dirs]}]
[_ {:keys [builds server-port]} {:kick.builder/keys [target classpath-dirs]}]

(let [target-relative #(when % (str (.resolve target %)))]

(repl-api/start-figwheel!
{:figwheel-options {:css-dirs [(str target)]}
{:figwheel-options (merge
{:css-dirs [(str target)]}
(when server-port {:server-port server-port}))

:build-ids (into [] (map :id builds))

Expand Down

0 comments on commit c20ece5

Please sign in to comment.