lein-figwheel

bbarr 2019-01-07T13:38:44.010800Z

Hi all! I'm new to clojurescript and figwheel. I think this might be a basic question, but I've had some trouble finding any documentation. I've got an application that contains a single page app (using reagent) and a webworker. When figwheel starts it compiles the app, but not the worker. I can manually compile the worker, but then figwheel isn't serving the javascript from the worker. Is there anyway to force figwheel to auto-compile to build targets and serve both of their javascript?

bbarr 2019-01-07T13:39:21.011100Z

Here's a link to my project.clj https://gitlab.com/bradford.barr/cljs-test/blob/web-workers/project.clj

bhauman 2019-01-07T13:41:22.011800Z

lein figwheel app worker

bbarr 2019-01-07T13:46:19.012Z

hah, that's easy

bbarr 2019-01-07T13:46:21.012200Z

thanks

bbarr 2019-01-07T14:11:18.013Z

I'm still only seeing my app target being served. I'm getting the following error from my console:

NetworkError: Failed to load worker script at "js/worker/goog/base.js"

bbarr 2019-01-07T14:11:44.013400Z

but both the worker and app are being built now 🙂

bbarr 2019-01-07T15:24:16.013800Z

I figured it out, my fig http server directory was set incorrectly, on to new errors. Thanks!

victorb 2019-01-07T15:45:09.014800Z

I've just installed lein-figwheel and added :figwheel true to my cljsbuild build, but seems my app doesn't try to open the ws connection. What am I missing?

victorb 2019-01-07T16:00:53.015200Z

^ missing figwheel.preload apparently, solved 🙂