Fork me on GitHub

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
                                                    :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 😛.