Skip to content

openingnow/embed-rust-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embed the WASM file in HTML to simplify distribution.

wasm-pack build --target web
python -c 'print(open("index_template.html").read().replace("`GLUE-JS`;",open("pkg/rf.js").read()))' > index.html
sed -i "s|GZIP-BASE64|$(gzip -c pkg/rf_bg.wasm | base64 -w 0)|" index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published