cljsjs

2016-09-26T22:05:19.000706Z

if a package includes a CSS file, how can i access that file? (note i’ve found some discussion around doing this with boot, but i’m using lein)

martinklepsch 2016-09-26T22:08:07.000707Z

@eyelidlessness you can use io/resource, the jar contents are on the classpath

martinklepsch 2016-09-26T22:08:42.000708Z

(io/resource "cljsjs/dropzone/common/dropzone.min.css) — something like this

2016-09-26T22:09:34.000709Z

and… write the file to somewhere usable by the project?

martinklepsch 2016-09-26T22:12:05.000710Z

depends, in many cases the classpath can be considered "usable by the project"

2016-09-26T22:13:19.000711Z

mine gets packaged and served by nginx, so that won’t do. but if i can get at the resource on the cp, that should be enough to get me where i’m going. thanks!

juhoteperi 2016-09-26T22:19:20.000712Z

https://github.com/cljsjs/packages/wiki/Non-JS-Assets

2016-09-26T22:24:13.000714Z

^ of course the first thing i read

juhoteperi 2016-09-26T22:24:43.000715Z

"Importing using Less/Sass compiler" works with Lein also