Skip to content

Commit

Permalink
Merge pull request #1367 from josephrocca/patch-1
Browse files Browse the repository at this point in the history
Add `--target web` to quick start build command
  • Loading branch information
drager authored Jul 1, 2024
2 parents a14c9f6 + 4da7e4a commit d70be1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
1. [Install this tool.]
1. Run `wasm-pack new hello-wasm`.
1. `cd hello-wasm`
1. Run `wasm-pack build`.
1. Run `wasm-pack build --target web`.
1. This tool generates files in a `pkg` dir
1. Import it: `import init, { greet } from "./pkg/hello_wasm.js"`, initialize it: `await init()`, and then use it: `greet()`
1. To publish to npm, run `wasm-pack publish`. You may need to login to the
registry you want to publish to. You can login using `wasm-pack login`.

Expand Down

0 comments on commit d70be1e

Please sign in to comment.