koute / cargo-web

A Cargo subcommand for the client-side Web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to include the wasm file content into the generated .js runtime?

slmjkdbtl opened this issue · comments

commented

Sometimes the wasm file won't be at the path that was generated, it feels clunky to open the generated js file and edit, it'll be nicer to have 1 js file that also includes the wasm file content (generate as a Uint8Array literal declaration), also saves a http request. If you think it's OK i'll submit a pr for this