This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-31
Channels
- # beginners (153)
- # cider (30)
- # cljs-dev (8)
- # cljsrn (8)
- # clojure (105)
- # clojure-dev (6)
- # clojure-dusseldorf (5)
- # clojure-italy (6)
- # clojure-nl (3)
- # clojure-russia (34)
- # clojure-spec (23)
- # clojure-uk (54)
- # clojurescript (104)
- # core-matrix (3)
- # crypto (1)
- # cursive (17)
- # datomic (90)
- # duct (13)
- # editors (5)
- # emacs (1)
- # events (1)
- # figwheel-main (9)
- # fulcro (54)
- # hoplon (18)
- # hyperfiddle (2)
- # jobs-rus (1)
- # lein-figwheel (5)
- # leiningen (3)
- # luminus (52)
- # mount (6)
- # off-topic (22)
- # other-languages (3)
- # parinfer (7)
- # powderkeg (3)
- # re-frame (52)
- # reagent (58)
- # rum (4)
- # shadow-cljs (49)
- # spacemacs (12)
- # sql (13)
- # tools-deps (2)
- # yada (1)
if I want to use clojurescript in a non-SPA web page and serve the compiled JS in a page that is not /
(e.g., /edit/example
), what configuration is recommended so :optimizations :none
works?
my problem is that when trying to load goog.js
et al, I get requests in the browser trying to load
(note the spurious edit/
there)
I could get it working by setting :asset-path
to ../cljs-out/dev
, but I don't suppose that's the recommended setup?
trying to switch to figwheel-main after upgrading cider to something contemporary. keep getting this, little stuck....
Caused by java.io.FileNotFoundException Could not locate cljs/cli__init.class or cljs/cli.clj on classpath.
@euccastro setting the asset-path is exactly what you need here. YOu could probably also set it to /cljs-out/dev
@bhauman: when I tried to do that the browser somehow attempted to fetch http://cljs-out/dev. I guess I'll try
[P.S.: it worked just fine!]. A bit weird to duplicate the dev port there but IIUC it's only used for :optimizations :none
so meh..