mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-28 23:22:16 +00:00
This commit migrates all our examples to using `wasm-pack build` to compile their code and run `wasm-bindgen`. This should make it a bit easier to understand the examples as there's less to follow during the build step. Webpack projects are all using `@wasm-tool/wasm-pack-plugin` as well so the build step is simple `npm run serve`. Other examples which retain `build.sh` are just using `wasm-pack build` now
14 lines
303 B
Markdown
14 lines
303 B
Markdown
# Using `--no-modules`
|
|
|
|
[View documentation for this example online][dox]
|
|
|
|
[dox]: https://rustwasm.github.io/wasm-bindgen/examples/no-modules.html
|
|
|
|
You can build the example locally with:
|
|
|
|
```
|
|
$ wasm-pack build --target no-modules
|
|
```
|
|
|
|
and then opening `index.html` in a browser should run the example!
|