Fork me on GitHub
#figwheel-main
<
2019-11-11
>
dharrigan12:11:50

Quite new to this and I'm using the clj tools, not lein, to do the building etc.. I'm able to produce the dev and a production build. Does anyone have any hints/tips for packaging production? I tested it working by copying my "resources/public/index.html" and "target/public/*" to one directory and I'm able to serve up the content. Is there something that would do that (yes, I could write the script to do this, but I'm sure this is a solved problem so don't want to re-invent the wheel). Thank you!

pez12:11:33

Using Leiningen or something else?

dharrigan13:11:54

clojure tools

dharrigan13:11:00

clj/clojure and deps.edn

dharrigan13:11:47

easssssily fixed

dharrigan13:11:06

production.cljs.edn

dharrigan13:11:09

{:main foo.core
 :output-to "resources/public/main.js"
 :optimizations :advanced}

dharrigan13:11:17

then just tar up the public directory

dharrigan13:11:21

all wunderbar!