This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-06
Channels
- # beginners (137)
- # cider (60)
- # cljs-dev (52)
- # cljsrn (5)
- # clojars (15)
- # clojure (156)
- # clojure-brasil (1)
- # clojure-dev (7)
- # clojure-italy (13)
- # clojure-serbia (2)
- # clojure-spec (12)
- # clojure-uk (76)
- # clojurescript (129)
- # core-async (27)
- # core-typed (1)
- # cursive (3)
- # datomic (105)
- # devcards (39)
- # emacs (10)
- # figwheel (1)
- # fulcro (68)
- # graphql (6)
- # juxt (3)
- # klipse (85)
- # lein-figwheel (47)
- # leiningen (3)
- # midje (1)
- # mount (26)
- # off-topic (71)
- # om (4)
- # overtone (4)
- # parinfer (3)
- # pedestal (4)
- # portkey (37)
- # re-frame (37)
- # reagent (13)
- # reitit (3)
- # ring (1)
- # rum (5)
- # shadow-cljs (191)
- # spacemacs (35)
- # specter (26)
- # tools-deps (45)
- # vim (20)
How does figwheel determine which script to load in the webpage it serves? I added a clojurescript library to my leiningen project and now figwheel is trying to serve "/js/compiled/library.js" instead of "/js/compiled/app.js" like it used too... the end result is my app doesn't run
@bfast the :main
option determines the main namespace to be loaded in the :output-to
file
and if you look at the contents of your output to file you will see it requiring that,
it seems to me the problem is that it is attempting to load something other than the output to file
the index.html is initially generated by the lein figwheel template in resources/public
If I were you I would use chrome devtools to look at the loaded html and the network loads to determine what specifically is going on
can devcards generate its own "index.html" ... or how do i get hot reloading to work in that project
no it doesn't, but you don't have to have index.html , it can be library-cards.html or cards/index.html whatever you want it to be
Ah ok ... yeah we are using cards.html... but somehow an index.html file is there too
@bfast in the libary project I would put your cards.html
index.html in dev-resources/public
and that will be excluded from consumers of the library and then in your current project put a copy of cards.html
in your dev-resources/public