Chrome browser extension with wasm
In adv2023-lib
folder run wasm-pack build --target web
, this will generate a pkg
folder with all the files you need.
Move then pkg/adv2023_lib.js
and pkg/adv2023_lib_bg.wasm
in the folder src/wasm/
, or change parameters of wasm-pack
command, like:
wasm-pack build --target web --out-dir ../src/wasm --no-pack --no-typescript
In the root run pnpm build
If you use taskfile, you can directly run task build
in the root of the project.
- Build the extension
- Go to
chrome://extensions/
- Use "Load unpacked" button
- Choose the
dist
directory of this repository