Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Latest commit

 

History

History
34 lines (21 loc) · 1.11 KB

README.md

File metadata and controls

34 lines (21 loc) · 1.11 KB

🦀🕸 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).