This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-05
Channels
- # adventofcode (246)
- # aleph (5)
- # aws (7)
- # beginners (161)
- # boot (3)
- # calva (42)
- # cider (40)
- # clara (10)
- # cljdoc (7)
- # cljs-dev (40)
- # cljsrn (6)
- # clojure (170)
- # clojure-dev (8)
- # clojure-greece (2)
- # clojure-italy (15)
- # clojure-kc (2)
- # clojure-new-zealand (13)
- # clojure-nl (13)
- # clojure-russia (3)
- # clojure-spec (5)
- # clojure-uk (160)
- # clojurescript (72)
- # clojurex (1)
- # cursive (7)
- # data-science (9)
- # datascript (1)
- # datomic (120)
- # devcards (4)
- # emacs (18)
- # figwheel-main (10)
- # fulcro (34)
- # kaocha (3)
- # luminus (1)
- # lumo (6)
- # music (1)
- # nrepl (23)
- # off-topic (2)
- # pedestal (4)
- # re-frame (42)
- # reagent (36)
- # reitit (10)
- # ring-swagger (21)
- # shadow-cljs (124)
- # spacemacs (6)
- # tools-deps (14)
- # unrepl (3)
- # vim (2)
is figwheel-main the right place to perform a minified aka :advanced compilation? i have a prod.cljs.edn configured for doing so, but calling my :min
alias kicks open a browser and (rightfully) waits for updates making it hard to use in a pipeline:
:min {:main-opts ["-m" "figwheel.main" "-b" "build/prod"]}
Here's what I have for mine - doesn't open the browser
prod.cljs.edn
^{:mode :build-once}
{:main my-app.core
:optimizations :advanced
:output-to "resources/public/js/my-app.js"}
project.clj
:prep-tasks ["compile"
["run" "-m" "figwheel.main" "--build-once" "prod"]
["garden" "once" "prod"]]
It runs as part of my uberjar - not sure any of that actually helps, but you should also be able to set :open-url false
in your prod.cljs.edn
to get it to stop opening the browser
Awesome!