Skip to content

Commit 3a8a4fe

Browse files
authored
Simplify wasm compile steps a bit
1 parent 9b26111 commit 3a8a4fe

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/content/web/wasm.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ by following the temporary steps outlined here:
6767
which is necessary to run Wasm.
6868
Make sure your web apps are [migrated][] from `dart:html` to `package:web`.
6969

70-
1. Compile with Wasm: `mywebapp$ dart compile wasm web/main.dart`
71-
72-
1. Create a new directory for the built web app: `mkdir site`
73-
74-
1. Copy over Dart code: `cp web/main.* site/`
70+
1. Compile with Wasm to a new `site` output directory: `mywebapp$ dart compile wasm web/main.dart -o site/main.wasm`
7571

7672
1. Copy over the web files: `cp web/index.html web/styles.css site/`
7773

@@ -89,4 +85,4 @@ You can also try out this small example [here](https://github.com/mit-mit/sandbo
8985
[`package:web`]: {{site.pub-pkg}}/web
9086
[`dart:js_interop`]: {{site.dart.api}}/{{site.dart.sdk.channel}}/dart-js_interop
9187
[migrated]: /interop/js-interop/package-web/
92-
[dhttpd]: {{site.pub-pkg}}/dhttpd
88+
[dhttpd]: {{site.pub-pkg}}/dhttpd

0 commit comments

Comments
 (0)