@raspasov great
@raspasov do you use require to include images/pngs in your application code?
@bhauman no… Most of the images I generally load are remote
But I can give it a try just to confirm
yeah I’m not sure that (js/require "./assets/my-image.png")
works in cljs file
ok let me try…
@bhauman as long as I have the line:
// npmDeps["./assets/logo.png"]= require("./assets/logo.png");
it seems to work
thanks! that’s what I thought
and you mean not commented out
that makes sense
Yes
Just tried that; Doesn’t seem to work : D
Adding a line in index.js is really not a problem IMO for images; at least not a problem for me, since I don’t use many of them
Hello! I am configuring Calva for use with Krell. Since there are a few places where one could go wrong, I'd like to add a section on the tooling page on the Krell wiki, but it is not publicly editable. How do I go about it? 😃
Ping David Nolen about it
Newbie Krell question. When I have both the Android Emulator and the iOS Simulator connected they seem to tale turns hot reloading code changes. Is there a way I can get both to hot reload all changes?
Also the REPL connects and disconnects every other second.
Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
I don’t think David designed Krell REPL to support multiple clients
yeah multiple clients not supported and not a priority for the first release
@bhauman fwiw getting Figwheel up to Krell's level wouldn't be particularly hard - the js/require
stuff is actually pretty straightforward
https://github.com/vouch-opensource/krell/blob/master/src/krell/passes.clj
Krell does it with compiler passes and caching into the analysis
Yeah I saw the passes code thats what made me think of it
@dnolen thanks I’m planning on giving it a shot
Krell: I fail to display an assets image. Doing (def splash-img (js/require "../assets/pic.png"))
and then [rn/image {:source splash-img :style {:width 200 :height 200}}]
. I don't know from where the relative path starts, but I've tried about every permutation.
@pez probably “./assets/pic.png”
Assuming “assets” is in the top-level project directory