This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-01
Channels
- # admin-announcements (20)
- # aws (24)
- # beginners (323)
- # boot (60)
- # business (1)
- # cider (23)
- # clara (7)
- # cljs-dev (38)
- # cljsrn (12)
- # clojure (302)
- # clojure-canada (5)
- # clojure-dev (26)
- # clojure-miami (1)
- # clojure-nl (13)
- # clojure-russia (64)
- # clojurecup (1)
- # clojurescript (202)
- # clojurex (4)
- # code-reviews (5)
- # core-async (23)
- # cursive (39)
- # datavis (26)
- # datomic (34)
- # devcards (5)
- # editors (19)
- # emacs (4)
- # events (6)
- # funcool (55)
- # hoplon (5)
- # ldnclj (3)
- # lein-figwheel (1)
- # luminus (15)
- # om (159)
- # omnext (7)
- # onyx (107)
- # slack-help (2)
- # testing (3)
I just discovered that if you create a new project with lein new luminus myproject +cljs
and try to lein cljsbuild once
you get an error:
Exception in thread "main" java.lang.AssertionError: Assert failed: :source-map true must specify a file in the same directory as :output-to "target/cljsbuild/public/js/app.js" if optimization setting applied
Could be fixed either by adding {:source-map "target/cljsbuild/public/js/app.js.map"}
or {:optimizations :none}
to :project/dev -> :cljsbuild -> :builds -> :app -> :compiler
.
@yogthos: I'd be happy to do a bug report and/or pull request if you'd like. If the latter, let me know which fix you'd prefer (or if it's some other fix entirely).In not sure if there's a good way to get both ways of compiling working, if you'd like to take a look I'll be happy to take a PR :-)
Huh. Still, if you're specifying additional :cljsbuild config in :project/dev, it seems like it would make sense that it be cljsbuild-compatible. Your call, though, of course. I'll poke around & see if they can both work simultaneously.
That is, if it's not intended to be cljsbuild-compatible, why specify the additional :cljsbuild config?
@yogthos: just tested; either of those solutions works fine w/ figwheel, while simultaneously enabling cljsbuild to work. Got a preference on which solution I implement for a PR?
I'm also noticing something kinda odd -- on a fresh project with lein new luminus myproject +cljs
, lein run
and lein figwheel
end up serving on different ports (3000 vs 3449). Is there a reason for that? I'm used to them being on the same port.