This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-26
Channels
- # beginners (91)
- # cider (34)
- # cljsrn (6)
- # clojure (95)
- # clojure-gamedev (4)
- # clojure-serbia (7)
- # clojure-spec (5)
- # clojure-uk (27)
- # clojurescript (42)
- # data-science (1)
- # datascript (2)
- # datomic (4)
- # duct (10)
- # emacs (11)
- # fulcro (21)
- # luminus (3)
- # lumo (24)
- # off-topic (2)
- # other-languages (2)
- # ring (2)
- # shadow-cljs (39)
- # spacemacs (9)
- # tools-deps (2)
I'm running -Ddev and -Dcards from Intellij (working through section 2.3.5 of the manual)
I think that might just be how it is. You can switch to shadow-cljs for the dev part. Getting cards working with shadow-cljs was a bit of a challenge (I gave up), but I'm told it can be done. (Just need an example).
hmm, last time I toyed with clojurescript using re-frame, the figwheel reload was within one second or so. Not sure what is eating 7 seconds or more
@U0D5RN0S1 care to provide some more details about your devcards problems? it should just work? you might be running into this https://github.com/bhauman/devcards/pull/135
@thheller I'll definitely communicate next time I try to use devcards from the project in question. Hopefully soon, whether success or failure.
I want to ask the same question.* How to improve the figwheel/defcard responding speed? It will take 9 seconds to see the change everytime.I have changed the IDEA vmoptions to -Xms1g -http://Xmx2g.It doesn’t work. I am using a 2014 macbook air( 1.4 GHz Intel Core i5, 4 GB 1600 MHz DDR3).
@beders @eric.shao I was experiencing very slow figwheel
builds too. Switching to shadow-cljs
resolved these & I'm getting builds of a second or less in both devcards and my app. Changing from figwheel
to shadow-cljs
is a bit finicky - the hosting html pages are different, the project.clj
is quite different & shadow-cljs
's own config mechanism replaces the previous figwheel
and lein-cljsbuild
config in project.clj
To help me through it I created a new fulcro shadow-cljs project from scratch and copied the configuration from there into my own app. If you try that and get stuck let me know
which template did you use? the one here https://github.com/fulcrologic/fulcro-template doesn't really have shadow-cljs support (there's no config file generated for it)
@thheller I'm just porting the manifest to the new format, and I wonder something, how we would go about having multiple content-scripts there?
:content-script {:init-fn some.thing/foo}
is just short for :content-script {:output-type :chrome/content-script :init-fn ...}
:output-type :chrome/content-script
is what matters. the key just controls how the file will be named.
cool 🙂