I'm ready to release my clojurescript app. Currently i do lein ring uberjar
to create my jar, which does build cljs, but i dont see any documentation on how to do a release build-- do i need to do any concat-ing/minifying/bla bla bla? Are there special release options?
Here is my cljsbuild setup in my project.clj->
{
:builds [{:id "dev"
:source-paths ["src/analyticsjs"]
:figwheel false
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"]
:compiler {:main "analyticsjs.core"
:asset-path "/js"
:output-to "resources/public/js/cljs.js"
:output-dir "resources/public/js"}}
]
}
All help is appreciated. Thanks!
我在Clojurians松弛通道中被指示在我的:compiler
映射中添加:optimizations :advanced
,该方法有效。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.