Fork me on GitHub
#figwheel-main
<
2020-05-21
>
bhauman17:05:47

Updates on :bundle target support:

bhauman17:05:02

got the config down to:

bhauman17:05:20

^{:watch-dirs ["src" "test"]}
{:main my-ns.core
 :target :bundle
 :bundle-cmd {:none ["npx" "webpack" "--mode=development" :output-to "-o" :final-output-to]}
 }

😍 8
bhauman17:05:23

:final-output-to is :output-to with “_bundle” added before the “.js” extension

bhauman17:05:14

you can override :final-output-to in the figwheel-options

^{:final-output-to "out/my.bundle.js"}

bhauman17:05:50

the cool thing here is now figwheel can fill in the :bundle-cmd template differently for extra-mains and auto-testing

bhauman17:05:18

so for the configuration above :auto-testing true works

🎉 20
bhauman17:05:33

as well as extra-mains

bhauman17:05:02

this is all deployed in 0.2.6-SNAPSHOT

bhauman17:05:47

any feedback or thoughts here would be great

bhauman17:05:58

Going to be looking at an :auto-bundle :webpack figwheel option

Franklin19:05:56

Is there a way I can get jetty server logs to show up when using the figwheel console?

Franklin19:05:28

I'm tring to debug an issue on my server side, and I'd like to use print statements in the handlers. but I cant to this when I can't see the server logs

bhauman19:05:14

@franklineapiyo I think the best thing to do here is to set the :log-level key in config