Bootstrap your Rust, WebAssembly, and Webpack project!
APACHE-2.0 License
Bootstrap your Rust, WebAssembly and Webpack projects!
Forked from rust-webpack-template due to the original project being abandoned.
This bootstrapper is designed for creating monorepo-style Web applications with Rust-generated WebAssembly and Webpack without publishing your wasm to NPM.
You can use this project bootstrapper with npm init
:
npm init rust-web-project my-app
For now you can use the original project's documentation to learn about the generated project's layout.
This template comes pre-configured with all the boilerplate for compiling Rust to WebAssembly and hooking into a Webpack build pipeline.
npm start
-- Serve the project locally for development at
http://localhost:8080
. It auto-reloads when you make any changes.
npm run build
-- Bundle the project (in production mode).
npm test
-- Run the project's unit tests.