Kickstart your Rust, WebAssembly, and Webpack project!
Clone or download
Pull request Compare This branch is 24 commits ahead, 13 commits behind rustwasm:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bin
crate
js
.gitignore
.travis.yml
LICENSE-APACHE
LICENSE-MIT
README.md
index.html
package-lock.json
package.json
webpack.config.js

README.md

🦀🕸 rust-webpack-template

Kickstart your Rust, WebAssembly, and Webpack project!

This template is designed for creating monorepo-style Web applications with Rust-generated WebAssembly and Webpack without publishing your wasm to NPM.

🔋 Batteries Included

This template comes pre-configured with all the boilerplate for compiling Rust to WebAssembly and hooking into a Webpack build pipeline.

  • npm run start -- Serve the project locally for development at http://localhost:8080.

  • npm run build -- Bundle the project (in production mode).

🚴 Using This Template

First, install wasm-pack!

Then, use npm init to clone this template:

npm init rust-webpack my-app