clj-commons / citrus

State management library for Rum
Eclipse Public License 1.0
274 stars 21 forks source link

adding `clj-commons/citrus` overrules `resources/public/index.html` script[src] #64

Open birdspider opened 4 years ago

birdspider commented 4 years ago

Hi,

I'm not sure if this is a bug or something everyone knows about. But coming from an new-to-cljs perspective the following confusion happend to me:

1) I had a cljs/figwheel-main/cider/rum setup set up 1a) including a standard resources/public/index.html which contained some script[src="cljs-out/dev-main.js"] 2b) the setup worked normally

2) read about citrus, decide to try it out

3) as soon as clj-commons/citrus is added to deps.edn, the build-in-figwheel-dev-server:9500 returns another index.html response with script[src="js/compiled/main.js"] or similar, which is not there.

4) how and why?

claj commented 4 years ago

This is because files are added as resources in jars, and the citrus jar's resources/public/index.html shadows the figwheel identically named resources/public/index.html. This google group post mentions the problem: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main