diff --git a/bb.edn b/bb.edn index 7f49334..88220af 100644 --- a/bb.edn +++ b/bb.edn @@ -18,7 +18,8 @@ (fs/delete-tree ".shadow-cljs"))} shadow:watch {:doc "Development build. Starts webserver and watches for changes." - :task (build/build *command-line-args* {:action "watch"})} + :task (build/build {:action "watch" + :args *command-line-args*})} http-server {:doc "Starts http server for serving static files" :requires ([babashka.http-server :as http]) diff --git a/build/src/scittle/build.clj b/build/src/scittle/build.clj index 8586003..1e17a37 100644 --- a/build/src/scittle/build.clj +++ b/build/src/scittle/build.clj @@ -67,5 +67,6 @@ Options: * :action - compile action, defaults to release, but may also be compile or watch" - [{:keys [action] :or {action "release"}}] - (build* (format "-M -m shadow.cljs.devtools.cli --force-spawn %s main" action))) + [{:keys [action + args] :or {action "release"}}] + (build* (format "-M -m shadow.cljs.devtools.cli --force-spawn %s main %s" action (str/join " " args))))