Frontend:

- Remove we_alloce
- Replace webpack by rspack
This commit is contained in:
Greg Burri 2024-11-06 17:48:51 +01:00
parent 1f03c01d1d
commit ebdcb6a90a
10 changed files with 60 additions and 100 deletions

View file

@ -39,6 +39,10 @@ Autoreload: https://actix.rs/docs/autoreload/
## WebAssembly
'frontend' project needs some tools to generate the WebAssembly stuff. Everything is explained here: https://rustwasm.github.io/wasm-bindgen/examples/hello-world.html
TODO MVC Example:
https://github.com/rustwasm/wasm-bindgen/tree/main/examples/todomvc -> https://rustwasm.github.io/wasm-bindgen/exbuild/todomvc/#/
Javascript bundler: https://rspack.dev/
To compile run 'wasm-pack build' in 'frontend' directory
To launch node run 'npm run start' in 'frontend/www' directory