Fork me on GitHub
#shadow-cljs
<
2021-10-12
>
Benjamin17:10:46

what is the equivalent of resources directory + io/resource of clojure in cljs shadow world?

thheller19:10:18

resources is added to the classpath by lein conventions. It is equivalent to either just putting the files into on of the classpath dirs you already have or adding resources to said classpath. :source-paths ["src/main" "resources"] or just putting the files from resources into src/main if you have :source-paths ["src/main"]

👍 1
thheller19:10:50

that being said there is no way to use io/resource directly in CLJS. you can only do so in a macro