This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-11
Channels
- # announcements (7)
- # aws (52)
- # babashka (16)
- # beginners (49)
- # bristol-clojurians (1)
- # calva (2)
- # chlorine-clover (26)
- # cider (6)
- # clara (1)
- # clj-kondo (79)
- # cljfx (15)
- # clojure (82)
- # clojure-berlin (2)
- # clojure-czech (1)
- # clojure-europe (26)
- # clojure-france (91)
- # clojure-germany (48)
- # clojure-nl (7)
- # clojure-norway (99)
- # clojure-uk (54)
- # clojurescript (18)
- # code-reviews (9)
- # data-science (2)
- # datalog (15)
- # datomic (15)
- # depstar (20)
- # emacs (4)
- # events (1)
- # fulcro (30)
- # funcool (1)
- # graphql (1)
- # helix (5)
- # jobs (6)
- # kaocha (12)
- # leiningen (8)
- # luminus (1)
- # malli (13)
- # off-topic (73)
- # pathom (12)
- # portal (11)
- # portland-or (1)
- # re-frame (10)
- # reagent (1)
- # reitit (44)
- # remote-jobs (1)
- # ring (19)
- # shadow-cljs (64)
- # tools-deps (32)
{:deps {org.clojure/clojure {:mvn/version "1.10.0"}
org.clojure/clojurescript {:mvn/version "1.10.773"}
rum {:mvn/version "0.12.3"}
cljsjs/three {:mvn/version "0.1.01-1"}
doughamil/threeagent {:mvn/version "0.0.6"}
com.bhauman/figwheel-main {:mvn/version "0.2.11"}
}
:npm-deps {:three "0.120.1"}}
I thought all i needed todo was add :npm-deps to my deps.edn but the details on this are a bit sparse 😕that doesn't go in deps.edn
I think that goes in the build.edn file? https://clojurescript.org/guides/webpack
I will try that, never created a build.edn file before usually create figwheel-main.edn dev.cljs.edn and deps.edn for a project will look into it and see if that works
build.edn looks very similar to my dev.cljs.edn file I noticed does one have precedent over the other or is it one or the other
@oliver.marks you have Three as a dep in your deps.edn, you don't shouldn't need :npm-deps
if you have that already
That was my first stab, it all stems from doughamil/threeagent which fails because three.js does not exists it has suggestions for lein and shadow-clj https://github.com/DougHamil/threeagent but as I am using neither I am looking for a way to make it available
been using native clojurescripts libraries and I have noticed a tendency for others to use shadow-clj when it comes to npm
Hi Guys
Looking for some :target :bundle
help
% webpack --progress resources/public/js/index.js -o resources/public/js/app.js
92% chunk asset optimization TerserPlugin
Takes about 10 mins on my laptop!
If I use the TerserPlugin and set compress: false
it improves to a few seconds.
Presumably caused by chewing on the advanced build output.
Are there recommended webpack settings to avoid pointless "compress the compressed file" slowness?
(or I might be guessing at the wrong cause)
I'll stick my https://gist.github.com/olivergeorge/aa3b7dd8d8826b595bcca293cac6c3bc in a gist.