create-nix-rust-webpack
v0.2.1
Published
<div align="center">
Downloads
4
Readme
Kickstart your Nix, Rust, WebAssembly, and Webpack project!
Built with 🦀🕸 by The Rust and WebAssembly Working Group
About
This template is designed for creating monorepo-style Web applications with Rust-generated WebAssembly and Webpack without publishing your wasm to NPM.
A reproducible environment is provided with Nix. This is particularly useful for users on NixOS.
📚 Read this template's 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 nix-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.
Commands specified below should be run in the Nix devShell provided.
npm start
-- Serve the project locally for development athttp://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.