Skip to content

hash-css shouldn't be a build hook #2

Description

@thheller

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.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions