Chrome extension template with Rust :crab: and React using:
Mostly for projects where you want:
pnpm install
cargo install wasm-pack
cd rust-wasm && wasm-pack build --target web
What did we just do?
wasm-pack
which will build our Rust partsWhats next?
Review the manifest and personalize the extension. Look for __MSG_
, update icon and logo and other details.
pnpm dev
note: Most development is done live with HMR, which crxjs provides (no need to refresh the extension manually in Chrome). Except for the development of the background script which needs a manual tweak, for details see comments in src/background/index.ts.
pnpm build
Your fully built extension is in dist/