Fork me on GitHub
#shadow-cljs
<
2019-09-30
>
firstclassfunc16:09:48

Hey guys, checking here before I go off on a deep dive, has anyone been able to create https://nodered.org/ modules with shadow-cljs?

ssdev17:09:52

Hello all. I'm trying to modify a shadow-cljs pipeline to reload the browser when some sass is compiled into css. I'm attempting to use the watch-dir feature but so far it hasn't worked. If I manually reload the browser, I see the change, but the watch-dir command doesn't seem to pick it up. Am I missing anything?

:main {:target :browser
                        :asset-path "/js/main"
                       :modules {:main {:entries [demo.client]}}
                       :devtools {:watch-dir "resources/public/styles"
                                         :after-load demo.client/restart
                                           :preloads [fulcro.inspect.preload demo.development-preload]}}

thheller17:09:04

@ssanders you likely want :watch-dir "resources/public" as the path your css uses is likely /styles/foo.css

thheller17:09:35

@gary001 from the looks of it :node-library should suffice

👍 4
ssdev17:09:14

Ah yes, that was it. Thought I tried that... Thanks @thheller

Saikyun18:09:04

@thheller sometimes when saving then running (shadow.cljs.devtools.api/watch-compile! :app) quickly it seems like it compiles using "old" code. is there a function I could call to force it to use "fresh" sources?

thheller18:09:13

(Thread/sleep 500)? 😛