Fork me on GitHub
#shadow-cljs
<
2018-10-06
>
grumplet08:10:58

I'm wondering whether shadow-cljs could help configure antd dependencies rather than pulling in everything with clsjsjs/antd? Anyone aware of any prior art on this? (See https://github.com/priornix/antizer/issues/7 for background)

thheller08:10:58

@grumplet you can require whatever you need in antd via (:require ["antd/es/button" ...]) etc

thheller09:10:22

if you require "antd" you will get everything though

grumplet09:10:12

OK - that sounds good. I wondered whether antd would be especially awkward because it bundles its css using some webpack feature that I don't pretend to understand.

thheller09:10:47

css is not currently handled by shadow-cljs so you need to require those elsewhere

thheller09:10:00

but otherwise everything works fine

grumplet09:10:44

OK - so I find a way to extract antd css and then simply require the code.

thheller09:10:50

I even used antd as a sample for the build reports features

thheller09:10:15

vs. just requiring whatever is used antd/es/button in this case https://code.thheller.com/demos/build-report/not-so-huge.html

grumplet09:10:48

This sounds like what I've been looking for. Will go play! 🙂

Pontus10:10:24

is being able to import css something that will be implemented in the future in shadow-cljs?

thheller10:10:11

still undecided. probably not in shadow-cljs itself but rather something you can use via build hooks

Pontus10:10:12

would be cool 🙂 If there's one thing I miss from javascript it's the ability to just do import './style.css' -- the closest I've come to that is this library but it's deprecated: https://github.com/rgdelato/styled-classnames

Pontus10:10:32

looks like styled-components

kanwei16:10:45

FYI shadow doesn't seem to startup on alpha9/beta1

markx18:10:03

Hi does anyone use vim fireplace with shadow?

thheller20:10:15

@kanwei starts and works fine for me?

vigilancetech21:10:19

@thheller No, I didn't figure out the .hl ->cljs compile yet. Fighting other issues now, but when I do I'll post it