我的 clojurescript 代码的 project.clj 指定:repl-options {:init-ns my-project.core}
,我通过start-figwheel!
. 在figwheel文档中它说
;; you can also just call (ra/start-figwheel!)
;; and figwheel will do its best to get your config from the
;; project.clj or a figwheel.edn file`
但是当 figwheel 启动时,它会将我放入cljs.user
命名空间。我怎样才能让无花果拿起这个选项?
我的 figwheel.clj 如下所示:
(require '[figwheel-sidecar.repl :as r]
'[figwheel-sidecar.repl-api :as ra])
(ra/start-figwheel!
{:figwheel-options {}
:build-ids ["dev"]
:all-builds
[{:id "dev"
:figwheel {:devcards true}
:source-paths ["src"]
:compiler {:main 'my-project.core
:asset-path "js"
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js"
:verbose true}}]})
(ra/cljs-repl)
我基本上是从谷歌小组问这个问题。