Fork me on GitHub
#shadow-cljs
<
2022-10-27
>
Mario Trost15:10:05

👋 shadow-css doesn't support Tailwind's JIT compiler right now, does it?

winsome15:10:09

I've used this and it works just fine: https://github.com/teknql/shadow-cljs-tailwind-jit

✅ 1
thheller15:10:20

shadow-css doesn't use tailwind in any way for anything, it only borrows the naming scheme. the css generation is entirely independent

thheller15:10:25

tailwind needs a jit because otherwise the css is huge

thheller15:10:49

shadow-css only generates whats needed anyways, so basically is jit anyways

✅ 1
Mario Trost05:10:00

I was asking myself if I e.g. could do padding-[50px] like I could with Tailwind but yeah, I could get the same result with {:padding "50px"}

thheller06:10:49

yeah :padding-[50px] is not a valid keyword, so can't do that

fabrao21:10:28

what is the security issues pointed from nvd-clojure that shadow-cljs has I should care?

vemv00:10:40

could you post them? but in general I'd doubt that they matter. in general dev/test/build time tooling cannot be exploited in the wild Relatedly, it's a good idea to only pass nvd-clojure a classpath that accurately represents your production classpath. This project tries to be as pedantic about this as possible (internally and in its README) but there's still room for human mistakes :)

thheller05:10:03

yeah what would they be? nothing from shadow-cljs, except the final release outputs, should be anywhere near a production environments, so it really shouldn't matter

thheller05:10:12

I'd still be curious to know what they are 🙂

fabrao10:10:53

Hello, I'd appreciate your time. The security problem and the library

vemv12:10:06

looks like both are dev-time servers. If you don't run such servers in production you're on the safe side

thheller15:10:48

yeah, since you hopefully don't use shadow-cljs as your production webserver this really doesn't matter

fabrao15:10:40

yes, I wont

thheller15:10:14

the CVE are also about the AJP adapter which shadow-cljs doesn't use

fabrao15:10:37

what is that shadow-undertow?

fabrao15:10:37

oh, it's a webserver

thheller15:10:41

CLJ wrapper for the undertow http server

thheller15:10:01

used for the websockets, dev-http etc

fabrao15:10:23

yes, the websockets lib I use is fixed in my deps, thank you