Fork me on GitHub
#leiningen
<
2019-09-26
>
herald10:09:47

If I forget to include with-profile +uberjar when I run lein deploy, it won't include compiled css and js assets in the jar. Is there a way to make it so lein deploy always runs with the uberjar profile?

simonkatz10:09:32

@regen I think you can create an alias: :aliases {"deploy" ["with-profile" "+uberjar" "deploy"]}.

4
simonkatz10:09:18

At least I’ve done similar with repl and test tasks with success.

herald11:09:09

Thanks, that worked perfectly!