Skip to content
Kickstart your Rust, WebAssembly, and Webpack project!
Branch: master
Clone or download
alexcrichton Merge pull request #122 from alexcrichton/pointers
Update README to point to new wasm-pack docs
Latest commit 955eba9 Mar 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bin
crate
js
.gitignore
.travis.yml
LICENSE-APACHE Add more metadata to package.json and Cargo.toml Jul 30, 2018
LICENSE-MIT Add more metadata to package.json and Cargo.toml Jul 30, 2018
README.md
index.html
package-lock.json
package.json
webpack.config.js Note that WasmPackPlugin defaults to "dev" profile Mar 4, 2019

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.

📚 Read this template tutorial! 📚

Be sure to check out other wasm-pack tutorials online for other templates and usages of wasm-pack.

🚴 Using This Template

You can use npm init to clone this template:

npm init rust-webpack my-app

Afterwards check out the full documentation for exploring it.

🔋 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).

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.