Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"Live" (HMR) static site development using Vite with Zig-based WASM module as primary application source

License

Tythos/zig-wasm-vite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-wasm-vite

"Live" (HMR) static site development using Vite with Zig-based WASM module as primary application source.

Tested with Zig 0.13.0; compile commands for direct WASM build target may be slightly different in other versions.

Uses Vite to automate monitoring and rebuild/reload of WASM binary from Zig source; getting started is a simple two-step:

yarn install
yarn run dev

The only API forwarded to the Zig application in this demonstration is a single log() call to Console.

Best "way to use" this as a bootstrapper is most likely through something like degit:

degit https://github.com/Tythos/zig-wasm-vite.git
git init . && git add -A && git commit -m "initial content commit"

About

"Live" (HMR) static site development using Vite with Zig-based WASM module as primary application source

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published