Merge pull request #1378 from alexcrichton/doc-tweaks

Clarify some introductory docs
This commit is contained in:
Alex Crichton 2019-03-21 16:54:45 -05:00 committed by GitHub
commit 80899abf84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -40,6 +40,11 @@ Our JS entry point is quite small!
## Webpack-specific files
> **Note**: Webpack is not required for this example, and if you're interested
> in options that don't use a JS bundler [see other examples][wab].
[wab]: without-a-bundler.html
And finally here's the Webpack configuration and `package.json` for this
project:

View File

@ -6,12 +6,13 @@ doing.
These examples all assume familiarity with `wasm-bindgen`, `wasm-pack`, and
building a Rust and WebAssembly project. If you're unfamiliar with these check
out the [Game of Life tutorial][gol] to help you get started.
out the [Game of Life tutorial][gol] or [wasm pack tutorials][wpt] to help you
get started.
The source code for all examples can also be [found online][code] to download
and run locally. Most examples are configured with Webpack/`wasm-pack` and can
be built with `npm run serve`. Other examples which don't use Webpack are
accompanied with a `build.sh` showing how to build it.
accompanied with instructions or a `build.sh` showing how to build it.
Note that most examples currently use Webpack to assemble the final output
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.
[code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples
[gol]: https://rustwasm.github.io/docs/book/
[deploy]: ../reference/deployment.html
[wpt]: https://rustwasm.github.io/docs/wasm-pack/tutorials/index.html