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)
@eyelidlessness you can use io/resource
, the jar contents are on the classpath
(io/resource "cljsjs/dropzone/common/dropzone.min.css)
— something like this
and… write the file to somewhere usable by the project?
depends, in many cases the classpath can be considered "usable by the project"
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!
^ of course the first thing i read
"Importing using Less/Sass compiler" works with Lein also