This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-13
Channels
- # announcements (2)
- # babashka (2)
- # beginners (112)
- # calva (29)
- # cider (33)
- # clj-kondo (41)
- # cljdoc (10)
- # cljs-dev (2)
- # clojure (72)
- # clojure-berlin (3)
- # clojure-europe (10)
- # clojure-italy (6)
- # clojure-nl (15)
- # clojure-spec (5)
- # clojure-uk (40)
- # clojurescript (1)
- # clr (6)
- # community-development (6)
- # core-async (21)
- # cursive (42)
- # datascript (12)
- # duct (6)
- # flambo (1)
- # fulcro (50)
- # jobs (1)
- # leiningen (3)
- # off-topic (16)
- # re-frame (6)
- # reagent (23)
- # reitit (7)
- # ring-swagger (14)
- # shadow-cljs (35)
- # tools-deps (39)
- # vim (12)
Anyone managed to connect shadow-cljs & Cider to the REBL?
how to import css with shadow-cljs? things like in plain js import "react-image-lightbox/style.css";
so is it possible to create a js file with the above content and include in the shadow-cljs build somehow?
you can just copy node_modules/react-image-lightbox/style.css
into public/css/react-image-lightbox.css
and include it via <link rel="stylesheet" href="/css/react-image-lightbox.css">
in your HTML
I see. Thanks
@thheller are you on GitHub sponsor?
I am supporting you through patreon, but GitHub would match my donation for a year :)
I'm trying to write/use a macro and am getting Use of undeclared Var myproject.views.home/*clojure
. Looks like the kind of error where I'm missing something obvious (like maybe needing to require clojure somewhere)
@deadghost hard to tell without more info. is *clojure
your macro?
the error is exactly that. something is trying to access myproject.views.home/*clojure
and it doesn't exist. no more to that error than that.
@deadghost well the *clojure
must be coming from somewhere. If you want help you need to provide more code. it is impossible to guess what you are doing
Hi, I’m new to shadow-cljs. Is there a way to get hot reloading of plain js files? Usecase: I usually write d3.js code in clojurescript, but I would like to try to write that part in plain js instead. My project is base on the Luminus template.
Thanks, I skimmed that doc quickly earlier today, but I’ll read it more closely. I believe my use case is rather simple, so I’m optimistic. Thanks for the quick reply!
hello, playing around with expo + shadow-cljs. I'm currently using shadow-cljs cljs-repl
in order to connect with a repl to the app running on my phone, this works well, which is fantastic! my only problem is that when adding new requires I have to run shadow-cljs compile
, and then reload the app. this seems to disconnect shadow-cljs cljs-repl
. I was wondering if there was a way to reconnect it? my computer is pretty slow, so it generally takes a while to restart everything
@mokr I remember doing something like delete
ing modules I wanted to be reloaded in a function that runs whenever shadow-cljs
recompiles. e.g. in such a function:
(defn start
{:dev/after-load false}
[]
;; delete stuff here
)
maybe that can help? 🙂as always, great job thheller. I've managed to get opengl + cljs on mobile working thanks to your amazing tool 😄
OpenGL inside expo?
@saikyun I'm confused about what you said. you must have a shadow-cljs watch
running for your build, so running compile
is pointless?