This might come over as nitpicky, but you really shouldn't be using shadow-cljs :build-hooks for hash-css.
A good indicator for when things should be a build hook is if they use build-state. You are not using it at all, so this absolutely should not be a hook. I feel it makes the setup needlessly complicated. I would advise removing that build hook entirely and just instead directly call the function from here
|
(defn build |
|
"Build an uberjar." |
|
[_] |
|
(clean) |
|
(uber {:uber-file UBER-FILE |
|
:class-dir CLASS-DIR |
|
:main-ns MAIN-NS})) |
Heck, the whole api.util.build becomes obsolete if you just move the code into build.clj. You could even remove the copy-file hook and just do that from within build.clj.
This might come over as nitpicky, but you really shouldn't be using shadow-cljs
:build-hooksforhash-css.A good indicator for when things should be a build hook is if they use
build-state. You are not using it at all, so this absolutely should not be a hook. I feel it makes the setup needlessly complicated. I would advise removing that build hook entirely and just instead directly call the function from hereclojure-kamal-example/build.clj
Lines 28 to 34 in 8e1ae36
Heck, the whole
api.util.buildbecomes obsolete if you just move the code intobuild.clj. You could even remove thecopy-filehook and just do that from withinbuild.clj.