【发布时间】:2015-08-30 10:40:38
【问题描述】:
我正在尝试在我的 ClojureScript 构建中使用 figwheel。
它已经适用于lein cljsbuild auto,但我必须输入:optimisations :whitespace。
否则我会在浏览器中收到一条消息:
Uncaught ReferenceError: goog is not defined
但是figwheel 需要:optimisations :none 才能运行。这是我的leiningen 文件的一部分:
:cljsbuild {
:builds
[{:id "dev"
:source-paths ["src/cljs"]
:figwheel { :websocket-host "localhost"
;;:on-jsload "example.core/fig-reload"
:autoload true
:heads-up-display true
:load-warninged-code true
;;:url-rewriter "example.core/fig-url-rewrite"
}
:compiler {;; :main
:output-to "resources/public/js/gdb/gdb.js"
:output-dir "resources/public/js/gdb/cljsbuild-dev"
;;:asset-path "js/out"
:optimizations :none
:source-map "resources/public/js/gdb/gdb.js.map"
:pretty-print true}}]}
我缺少什么来获取缺少的依赖项?
【问题讨论】:
标签: leiningen google-closure-compiler clojurescript figwheel