You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blend4web does have a white-space-only optimized js file, as well as an advanced one. They're currently just sitting in the packages common/ directory.
Unfortunately, I cannot get those two other optimizations to compile. Because I'm using blend4web's externs.js, I assumed this optimization would work.
It's likely the case that boot has to be pointed to a different js file in the packages common/ directory -- depending on the optimization setting. But I want to work on some other stuff right now, and not forget this issue.
The text was updated successfully, but these errors were encountered:
mikebelanger
changed the title
:optimizations can only handle :simple
b4w can only work with cljs :optimizations set to :simple
Oct 11, 2016
mikebelanger
changed the title
b4w can only work with cljs :optimizations set to :simple
b4w can only work with cljs :optimizations set to :none
Oct 24, 2016
I wanted to use cljs-repl, which requires I set the optimization setting to :none. Normally, I would use the unoptimized b4w.js as well, but b4w.js is just an entry point for all of its modules, which sit in different files and get loaded in via CommonJS. That said, Boot looks for b4w.inc.js in its fileset when it compiles unoptimized, and complains if it isn't there.
As a workaround, this package now sifts the minified b4w.min.js into `b4w.inc.js instead, and so in effect, we're only using the advanced compilation mode b4w with our unoptimized clojure code :P
I believe a .edn is needed to point boot to different js files depending on the optimization setting, although its manual doesn't make that particularly clear. However, this tutorial gets at this, so I'll have to check this out next : https://adambard.com/blog/clojurescript-boot-fireplace/
blend4web does have a white-space-only optimized js file, as well as an advanced one. They're currently just sitting in the packages common/ directory.
Unfortunately, I cannot get those two other optimizations to compile. Because I'm using blend4web's
externs.js
, I assumed this optimization would work.It's likely the case that boot has to be pointed to a different js file in the packages
common/
directory -- depending on the optimization setting. But I want to work on some other stuff right now, and not forget this issue.The text was updated successfully, but these errors were encountered: