Fork me on GitHub

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


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

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