Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/reference/deploying-to-production.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ will throw an error.
[apache-mime]: https://httpd.apache.org/docs/2.4/mod/mod_mime.html#addtype
[nginx-mime]: https://nginx.org/en/docs/http/ngx_http_core_module.html#types

## Deploying without a Bundler

To deploy to the Web via an ES module, run the command: [`$ wasm-pack build --target web`][target web]. This outputs JS that must be [natively imported as an ES module in a browser alongside the WebAssembly being manually instantiated and loaded][wasm-example].

[wasm-example]: https://wasmbyexample.dev/examples/hello-world/hello-world.rust.en-us.html#implementation
[target web]: https://rustwasm.github.io/wasm-pack/book/commands/build.html#target

## More Resources

* [Best Practices for Webpack in Production.][webpack-prod] Many Rust and
Expand Down