Sample project which runs wasm-game-of-life in Chrome extension.
- yarn install
- Build wasm and link it
$ wasm-pack build wasm-game-of-life
$ cd wasm-game-of-life/pkg
$ yarn link
$ cd ../..
$ yarn link wasm-game-of-life
- yarn build
Then, the dist/
directory is generated. It can be loaded as a unpacked extension.
Next time, the step 1 and the step 2 can be omitted.