【发布时间】:2019-11-06 03:10:38
【问题描述】:
我正在尝试从 lein-figwheel 移动到 figwheel-main,并且我正在使用 lein。 默认情况下,figwheel-main 编译构建并将其放在 target/public/cljs-out 目录中。 但是我希望它位于不同的位置 resources/public/js/。
我尝试在我的 project.clj 中添加编译路径和目标路径,但没有任何改变。
:profiles {:dev {:dependencies [[com.cemerick/piggieback "0.2.1"]
[org.clojure/tools.nrepl "0.2.12"]]
:target-path "resources/public/js"
:compile-path "resources/public/js"
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}})
我希望构建编译到resourses/public/js 目录。但我仍然看到它被编译到target/public/cljs-out 目录。我哪里错了?
【问题讨论】:
-
两个月后,我使用 Clojure Deps 构建从 lein 上的旧 figwheel 切换到
figwheel-main。新的组合更更容易理解。我建议将您的 CLJS 构建迁移到 Clojure Deps。