Fork me on GitHub
#lein-figwheel
<
2018-03-10
>
andrewboltachev12:03:13

Hello. I've set :reload-clj-files to {:clj true :cljc true} and want on-jsload to be fired any time I save the *.clj file (i.e. one inside of CLJS compiler's :source-paths). But it seems only react to cljs files changes.

andrewboltachev12:03:53

Is there a way to reload on some particular file change (i.e. clj, edn files etc). Should I look into Figwheel API?

bhauman17:03:27

yes a clj file load doesn't trigger an on-jsload if the cljs files don't depend on it directly, if you do a require-macros for that file that will cause it to be called.