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.
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.
To install, add the following to your project :dependencies
:
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.
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:
Bingen Galartza Iparragirre & Damian HryniewiczEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close