2

私の clojurescript コードの project.clj は指定:repl-options {:init-ns my-project.core}し、私は figwheel を介して起動し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`

cljs.userしかし、figwheel が起動すると、名前空間に入れられます。figwheel にこのオプションを選択させるにはどうすればよいですか?

私の 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)

私は基本的に、この質問を Google グループから行っています。

4

1 に答える 1