This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-24
Channels
- # announcements (2)
- # aws (2)
- # babashka (1)
- # beginners (87)
- # boot (1)
- # calva (42)
- # clj-kondo (18)
- # cljdoc (5)
- # cljsjs (1)
- # cljsrn (1)
- # clojars (16)
- # clojure (222)
- # clojure-dev (30)
- # clojure-europe (17)
- # clojure-gamedev (2)
- # clojure-hungary (10)
- # clojure-italy (6)
- # clojure-nl (21)
- # clojure-spec (9)
- # clojure-uk (111)
- # clojuredesign-podcast (1)
- # clojurescript (99)
- # code-reviews (1)
- # conjure (18)
- # cursive (11)
- # datomic (22)
- # emacs (1)
- # events (3)
- # figwheel-main (3)
- # fulcro (14)
- # graalvm (41)
- # graphql (16)
- # helix (12)
- # juxt (1)
- # kaocha (56)
- # keechma (1)
- # meander (77)
- # observability (1)
- # off-topic (29)
- # pathom (3)
- # re-frame (4)
- # reagent (3)
- # reitit (1)
- # remote-jobs (3)
- # reveal (9)
- # shadow-cljs (45)
- # spacemacs (43)
- # sql (28)
- # tools-deps (14)
- # vim (1)
- # xtdb (26)
- # yada (1)
Hello! First of all, thanks for your great work!
I have a problem with configuring :mode :serve
though. The documentation says:
If you want to start a Figwheel build without a REPL you will need to ensure that the :mode option is :serve. You can do this in the metadata in the build file or you can supply a replacement for the figwheel-main.edn [...]
So first I tried modifying my figwheel-main.edn
:
{:open-url false
:mode :serve}
Then I run either lein fig -- --build dev
or (figwheel.main.api/start "dev")
from the repl. And I can see that the config file is ok because :open-url false
truly works as expected. But it still doesn't go to the :serve
mode.
dev.cljs.edn
:^{:mode :serve}
{:main following-documentation.core
:output-dir "target/public/js"
:output-to "target/public/js/main.js"}
(figwheel.main.api/start {:mode :serve} "dev")
And that worked. But that way my :open-url
config from figwheel-main.edn
doesn't work anymore. So I assume that that inline config makes figwheel-main.edn
to be ignored. Is that expected?But again, that inline config isn't my first choice anyway. I'd rather use figwheel-main.edn
or dev.cljs.edn
for that.
In the documentation I found this sentence:
> Server only mode is entered when specify `--serve` or `-s` as the only main option to `figwheel.main`
I tried removing all config from figwheel-main.edn
and leave only {:mode :serve}
but that didn't work either.