https://github.com/jkelleyrtp/yew-webworker-webpack
Use yew to create web workers and bundle it together with webpack
https://github.com/jkelleyrtp/yew-webworker-webpack
rust wasm webpack workers yew
Last synced: 3 months ago
JSON representation
Use yew to create web workers and bundle it together with webpack
- Host: GitHub
- URL: https://github.com/jkelleyrtp/yew-webworker-webpack
- Owner: jkelleyrtp
- License: mit
- Created: 2020-03-23T06:22:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-23T06:23:29.000Z (over 6 years ago)
- Last Synced: 2025-03-27T00:23:04.074Z (over 1 year ago)
- Topics: rust, wasm, webpack, workers, yew
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🦀🕸 `yew-wasm-worker-template`
[](https://travis-ci.org/VictorGavrish/rust-wasm-worker-template)
> **Kickstart your Rust, WebAssembly, Webpack, Yew, and Web Worker project!**
This template is designed for creating monorepo-style Web applications with
Rust-generated WebAssembly running inside a Web Worker and Webpack without
publishing your wasm to NPM. This template uses Yew as the frontend and for
launching the workers.
## 🔋 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
This template shows how it's possible to use wasm-bindegen to generate a single
wasm file for both the the frontend and for workers - simplifying build tremendously.