figwheel-main

figwheel-main http://figwheel.org
frankiesardo 2019-12-19T13:22:51.004900Z

Hey folks I've been using figwheel-main with the default template for a while: https://github.com/bhauman/figwheel-main-template but now I just found a problem. I'd like to specify {:closure-defines {goog.DEBUG false}} for my prod build but the templates only has one dev build. If I add a prod.cljs.edn configuration then the index.html will get confused because it stills tries to load the dev.cljs.edn configuration. The way the template does it is to supply a -O advanced before compiling the dev build. But there seems to be no way to specify a closure-define before building the dev config. I find it hard to use the template since it doesn't clearly separate dev, test and prod, and reading the documentation for the command flags is a struggle too. There are not many examples of people using fighweel-main and the few that exist https://github.com/pesterhazy/cljs-spa-example have an entire folder full of scripts that copy around the index.html files which to me defeat the purpose of having a build tool. Can anyone help a brother out please? 🙂