This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-03
Channels
- # aws (5)
- # beginners (67)
- # boot (30)
- # cider (55)
- # clara (7)
- # cljs-dev (6)
- # cljsjs (6)
- # cljsrn (1)
- # clojure (136)
- # clojure-brasil (2)
- # clojure-dusseldorf (14)
- # clojure-finland (9)
- # clojure-italy (49)
- # clojure-nl (1)
- # clojure-romania (6)
- # clojure-russia (4)
- # clojure-uk (16)
- # clojurescript (136)
- # core-async (1)
- # cursive (21)
- # datomic (64)
- # fulcro (26)
- # hoplon (25)
- # jobs-discuss (53)
- # keechma (3)
- # leiningen (6)
- # luminus (11)
- # lumo (2)
- # off-topic (351)
- # om (1)
- # onyx (11)
- # parinfer (32)
- # portkey (9)
- # re-frame (45)
- # reagent (38)
- # shadow-cljs (60)
- # specter (9)
- # vim (8)
- # yada (22)
Still facing that weird issue with leiningen where somehow, I can't get lein to build/compile the right files:
project.clj
...
:cljsbuild {:builds {
...
:app {:source-paths ["src/cljs" "src/cljc" "env/dev/cljs"]
:figwheel {:on-jsload "ui-app.core/mount-root"}
:compiler {:main ui-app.dev
:asset-path "/js/out"
:output-to "target/cljsbuild/public/js/app.js"
:output-dir "target/cljsbuild/public/js/out"
:source-map true
:optimizations :none
:foreign-libs [{:file "public/js/bundle.js"
:provides ["cljsjs.react" "cljsjs.react.dom" "webpack.bundle"]}]
:pretty-print true}}
...
}
in env/dev/cljs
, I have a file config.cljs
. In env/prod/cljs
I also have a file config.cljs
.
For some reason, when I lein figwheel app
, the prod config is used. I can't see why, but clearing caches etc doesn't help.I've done rm -r target
and rm resources/public/js -R
and rebuilding everything.
For some reason, the build always takes the prod config, not the dev config...
What (else) can be wrong?
when I run lein cljsbuild once app
, the right files are used. When running figwheel, the wrong config files are used...?
when I run it using cljs jack-in in spacemacs, it works fine as well... running lein figwheel
from the command line, it doesn't work fine. No clue what's going on 😛.