Hi friends. One simple question, because I'm not ...
# compose-web
l
Hi friends. One simple question, because I'm not very good with web technologies: After I create my webpack using
./gradlew sBrowserProductionWebpack
, how do I run it in my machine? So far I can put the file in github pages and it runs just fine, but how to run it in my machine? I understand that I can use the command
jsBrowserProductionRun
, but I would like to do it without gradle.
j
Both are gradle commands even the jsBrowserProductionRun you invoke via gradle
l
Hi jNayden. Yes, they are gradle commands, indeed I invoke them via gradle. Sorry, I think I wrote this in a confusing way. I'm not trying to invoke jsBrowserRun. I would like to know how to run the web bundle that gets generated... Is it a
npm
command? Do I need a server? Do I run it with node?
d
@Leandro Borges Ferreira are you using Compose Multiplatform for Web (i.e. wasm target) or Compose HTML?
l
I'm using Compose Multiplatform for Web for this project
o
you can start a simple web server:
cd path/to/distribution
// usually it's build/dist/js/productionExecutable then run
python -m http.server
then open: localhost:8000 in your browser Prefer using
jsBrowserDistribution
task or
wasmJsBrowserDistribution
when targeting k/wasm