This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-06
Channels
- # announcements (2)
- # beginners (110)
- # calva (4)
- # cider (2)
- # cljs-dev (3)
- # cljsrn (1)
- # clojure (83)
- # clojure-dev (56)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-uk (19)
- # clojurescript (14)
- # core-async (1)
- # cursive (6)
- # datomic (1)
- # defnpodcast (1)
- # figwheel (1)
- # figwheel-main (87)
- # fulcro (7)
- # graphql (1)
- # luminus (3)
- # off-topic (5)
- # pedestal (6)
- # re-frame (1)
- # reagent (3)
- # shadow-cljs (22)
- # spacemacs (1)
- # specter (12)
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)
@grumplet you can require whatever you need in antd via (:require ["antd/es/button" ...])
etc
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.
ie. including antd
fully https://code.thheller.com/demos/build-report/huge.html
vs. just requiring whatever is used antd/es/button
in this case https://code.thheller.com/demos/build-report/not-so-huge.html
is being able to import css something that will be implemented in the future in shadow-cljs?
still undecided. probably not in shadow-cljs itself but rather something you can use via build hooks
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
I personally use https://github.com/thheller/shadow/wiki/shadow.markup a lot
eg. https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/cljs/ui/style.cljs
@thheller No, I didn't figure out the .hl ->cljs compile yet. Fighting other issues now, but when I do I'll post it