Liking cljdoc? Tell your friends :D

Build Status Clojars Project

dev.gethop/server.figwheel-main

Integrant methods for compiling and dynamically reloading ClojureScript files in the Duct framework using Figwheel Main. Figwheel is designed to be used during development. For compiling ClojureScript for a production release, use compiler.cljs.

NOTE!

This library is heavily inspired by Duct server.figwheel. In fact, we're going to make an effort to make it canon to Duct's creator vision of this entire framework.

Installation

To install, add the following to your project :dependencies:

Clojars Project

Usage

This library provides the :duct.server/figwheel-main key, and accepts the same options as Figwheel Main.

{:duct.server/figwheel-main
 {:id "dev"
  :options {:main 'foo.bar.client
            :output-to "target/resources/foo/bar/public/js/main.js"
            :output-dir "target/resources/foo/bar/public/js"
            :asset-path "/js"
            :optimizations :none}
  :config {:mode :serve
           :open-url false
           :css-dirs ["resources"]}}}

See the Figwheel Main documentation for more information.

License

Copyright (c) 2022 HOP Technologies

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation? These fine people already did:
Damian Hryniewicz & Bingen Galartza Iparragirre
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close