Skip to content

Commit 80899ab

Browse files
authored
Merge pull request #1378 from alexcrichton/doc-tweaks
Clarify some introductory docs
2 parents 629a19b + e39b5c1 commit 80899ab

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

guide/src/examples/hello-world.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ Our JS entry point is quite small!
4040

4141
## Webpack-specific files
4242

43+
> **Note**: Webpack is not required for this example, and if you're interested
44+
> in options that don't use a JS bundler [see other examples][wab].
45+
46+
[wab]: without-a-bundler.html
47+
4348
And finally here's the Webpack configuration and `package.json` for this
4449
project:
4550

guide/src/examples/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ doing.
66

77
These examples all assume familiarity with `wasm-bindgen`, `wasm-pack`, and
88
building a Rust and WebAssembly project. If you're unfamiliar with these check
9-
out the [Game of Life tutorial][gol] to help you get started.
9+
out the [Game of Life tutorial][gol] or [wasm pack tutorials][wpt] to help you
10+
get started.
1011

1112
The source code for all examples can also be [found online][code] to download
1213
and run locally. Most examples are configured with Webpack/`wasm-pack` and can
1314
be built with `npm run serve`. Other examples which don't use Webpack are
14-
accompanied with a `build.sh` showing how to build it.
15+
accompanied with instructions or a `build.sh` showing how to build it.
1516

1617
Note that most examples currently use Webpack to assemble the final output
1718
artifact, but this is not required! You can review the [deployment
@@ -20,3 +21,4 @@ documentation][deploy] for other options of how to deploy Rust and WebAssembly.
2021
[code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples
2122
[gol]: https://rustwasm.github.io/docs/book/
2223
[deploy]: ../reference/deployment.html
24+
[wpt]: https://rustwasm.github.io/docs/wasm-pack/tutorials/index.html

0 commit comments

Comments
 (0)