Skip to content

Use yew to create web workers and bundle it together with webpack

License

Notifications You must be signed in to change notification settings

jkelleyrtp/yew-webworker-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦀🕸 yew-wasm-worker-template

Build Status

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.

About

Use yew to create web workers and bundle it together with webpack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published