Is `jsBrowserDistribution` the gradle task meant t...
# compose-web
a
Is
jsBrowserDistribution
the gradle task meant to be used to deploy compose web apps (js target, NOT wasm) in production? asking in terms of minify/proguard etc (if there is such a thing for web yet)
s
Hi @Alex Styl yes it is, I just used it today to build the production distributable. It also runs Binaryen which is the WASM minification/optimisation equivalent.
FYI some more info on Binaryen: https://github.com/WebAssembly/binaryen
a
thanks for the reply. is there a way to have obfuscation on the build?
s
Well WASM is a binary format, so obfuscation isn't really applicable.
Just look at all of the files in the
build/dist/wasmJs/productionExecutable
folder, there is also a .mjs file for Skiko (in my case) which is a source mapping file. I'm not 100% sure if they are needed, but in my deployments I omitted them and everything worked well.
I guess the documentation for building a production WASM distributable needs to be improved a bit.
a
im not targeting wasmjs
s
Ah ok, I'm sorry for the red herring then - my bad somehow I missed that in your initial post.
👍 2