@mike858 I found a nice solution:
lein 'trampoline' 'run' '-m' 'figwheel.main' '-co' 'dev.cljs.edn' '-fwo' 'figwheel-main.edn:figwheel-main.developer-config.edn' '-c' '-r'
figwheel-main.developer-config.edn is git ignored and can have configuration variables specific for each dev
I put this in a makefile so we can just run
make run and it will read from
figwheel-main.developer-config.edn and merge the configs from left to right
Here is the relevant part from figwheel --help
-fwo, --fw-opts edn Options to configure figwheel.main, can be an EDN string or system-dependent path-separated list of EDN files / classpath resources. Options will be merged left to right.
posting here since it's maybe more relevant, I was asking a question on #clojurescript https://clojurians.slack.com/archives/C03S1L9DN/p1583926342011900
so how do people in general deal with the fact that during local dev if you have lots of js libraries it loads the browser needs to load a gazillion files?
shadow-cljs apparently still merges them all into one by default, can I get the same behaviour somehow or at least make sure they are all cached somehow?
Is it a big problem? Even if they're merged, the amount of data is the same. Is the HTTP overhead considerable for local dev?
well I see 2400 different requersts for small JS files in one project
which takes forever every time I load the page
I have to investigate why so much
is not a big project, but anyway at least they should all be cached and just return a 304
in prod is just 25 requests just because of the various. analytics, and it takes infinitively less time to load
I do not have that problem in my half-big project...
do you use the figwheel ring server or your own?
Just figwheel's. Is that why I don't have the problem, you think?
mm no it still does lots of requests, but looks like 428 instead of 2400
so it is still better with the figwheel ring server for some reason
Maybe that's what I have. Will check the project tomorrow and see.
yeah well it's still 428 requests that should return 304 instead of 200 tbf
So it is loading the page that is the problem, not hot reload?
b/c I get 388 requests when I load the page. I use server side rendering so it never feels very slow.