Skip to content

Commit

Permalink
Fix docs about wasm-pack
Browse files Browse the repository at this point in the history
  • Loading branch information
pemistahl committed Oct 21, 2022
1 parent 1117bc3 commit 43fdc47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ in any JavaScript-based project, be it in the browser or in the back end running
The easiest way to compile is to use [`wasm-pack`](https://rustwasm.github.io/wasm-pack). After the installation,
you can, for instance, build the library with the web target so that it can be directly used in the browser:

wasm-pack build --target web
wasm-pack build --target web -- --no-default-features

This creates a directory named `pkg` on the top-level of this repository, containing the compiled wasm files
and JavaScript and TypeScript bindings. In an HTML file, you can then call *grex* like the following, for instance:
Expand All @@ -533,7 +533,7 @@ and JavaScript and TypeScript bindings. In an HTML file, you can then call *grex
There are also some integration tests available both for Node.js and for the browsers Chrome, Firefox and Safari.
To run them, simply say:

wasm-pack test --node --headless --chrome --firefox --safari
wasm-pack test --node --headless --chrome --firefox --safari -- --no-default-features

If the tests fail to start in Safari, you need to enable Safari's web driver first by running:

Expand Down

0 comments on commit 43fdc47

Please sign in to comment.