This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-13
Channels
- # announcements (34)
- # aws (1)
- # beginners (99)
- # boot (19)
- # calva (26)
- # cider (24)
- # cljdoc (8)
- # cljs-dev (29)
- # clojure (107)
- # clojure-dev (3)
- # clojure-europe (12)
- # clojure-finland (1)
- # clojure-italy (24)
- # clojure-nl (5)
- # clojure-spec (13)
- # clojure-sweden (3)
- # clojure-uk (36)
- # clojurescript (4)
- # community-development (14)
- # cursive (3)
- # data-science (6)
- # datascript (57)
- # figwheel-main (3)
- # fulcro (9)
- # graalvm (11)
- # hoplon (18)
- # jobs (1)
- # jobs-discuss (2)
- # joker (10)
- # leiningen (13)
- # off-topic (23)
- # other-languages (1)
- # pathom (24)
- # pedestal (5)
- # re-frame (6)
- # reagent (45)
- # reitit (3)
- # rewrite-clj (1)
- # spacemacs (2)
- # sql (23)
- # tools-deps (6)
- # vim (5)
I don't have a whole lot of experience with https://clojurescript.org/guides/webpack but one thing I've been wondering is whether it is possible to automate it a little more, perhaps with new compiler options along the lines of :webpack-deps
or somesuch.
This is really a question I have based on my current level of ignorance on the subject.
Perhaps the right thing to do would be to explore such ideas outside of the compiler proper, via some "main-style, clj
alias-driven programs" to even see how far automation and simplification can be taken. (And perhaps there are corner cases that thwart this idea, where you really need a human to set up the relevant files, etc.)
I don’t have much experience using webpack with CLJS either. But I think having something that worked like create-react-app w.r.t. project configuration and scaffolding, that was a dependency that could be bumped / overridden / “ejected”, would be most excellent
again if a library chooses a structure that's incompatible w/ ClojureScript namespaces there's not really an automatic way to handle that
I do think better docs, better errors are in order for more intermediate/advanced use cases
Makes me wonder if you had some tooling option somewhere that accepted :webpack-index-js
(and punted to you to make that file), if the rest could be automated. Dunno. Again, ignorance is my problem. 🙂
Cool cool. I think the problem I have is, when you look at https://clojurescript.org/guides/webpack where, if you don't know much about it, the example on that page looks almost automatable. But the devil is in the details if you start using it in anger and you see the corner cases.