Fork me on GitHub
#figwheel-main
<
2019-07-12
>
PB14:07:21

I have just moved to deps.edn. When using lein there was a command I used to compile my css, lein sassc once. Is there a way to do this with lein? I do not see any other deps for this?

rgm22:07:25

Maybe not quite what you’re looking for, but I just use entr and sassc (non-clj specific). http://eradman.com/entrproject/ ... less complected, as they say. Unix does a great job with this kind of thing; no need to tangle up the clj build tools.

rgm22:07:40

Eg find src -name “*.scss” | entr sassc —my build —commands > resources/public/styles.css

plexus16:07:29

@kvit that functionality is offered by lein-sassc, I'm not sure if there's a version of that that you can easily use with clojure CLI

PB16:07:59

Hey Plexus, thanks for the response, that's exactly what I was asking but I see that I missworded. is there any way to do this without lein? should have been my question

dimovich18:07:42

@petr don't know about others, but this is how I do it:

dimovich18:07:31

basically write a little clj script that will compile your SASS and use it with :main-opts ["-i ..."]. Start your compilation with clj -A:figwheel.