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
jNayden
05/04/2024, 2:44 PM
Both are gradle commands even the jsBrowserProductionRun you invoke via gradle
l
Leandro Borges Ferreira
05/04/2024, 3:48 PM
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
David Herman
05/04/2024, 9:01 PM
@Leandro Borges Ferreira are you using Compose Multiplatform for Web (i.e. wasm target) or Compose HTML?
l
Leandro Borges Ferreira
05/06/2024, 8:13 AM
I'm using Compose Multiplatform for Web for this project
o
Oleksandr Karpovich [JB]
05/06/2024, 9:10 AM
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