Is it possible to add something to the classpath in boot, but not making it part of a fileset, just let it sit on the filesystem?
I'm trying to do a build with figwheel.main + deps.edn and combine this with our boot backend.
Making the output of figwheel main write into target or resources, makes boot very slow
https://github.com/boot-clj/boot/blob/master/doc/boot.pod.md#add-classpath @borkdude does that do what you want?
@micha It might. The first thing I tried was letting the CLJS compiler write to target-js
and in build.boot I added target-js
to :resource-paths
. What's the difference with add-classpath
?
add-classpath isn't going to reload anything
it's just adding something to the classpath with no extra fileset special treatment
it's a low level function
i guess there are a ton of files being written to target-js
when you point the cljs compiler at it?
which makes things slow?
yes, also I got file-system related errors on macOS. the same happens sometimes while switching branches in git
sorry I can't be more specific, it's been a couple of months since I worked on this. I'll try to reproduce it again and also try add-classpath