Skip to content

Commit 4501857

Browse files
committed
Sync: 2024/12/02
1 parent c78f0b6 commit 4501857

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/content/deployment/web.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,21 @@ to view the release version of your app.
7979
在浏览器中访问 `localhost:8000`(以 Python 启动的服务器为例)
8080
来查看应用程序的发布版本 (release)。
8181

82+
## Additional build flags
83+
You might need to deploy a profile or debug build for testing.
84+
To do this, pass the `--profile` or `--debug` flag
85+
to the `flutter build web` command.
86+
Profile builds are specialized for performance profiling using Chrome DevTools,
87+
and debug builds can be used to configure dart2js
88+
to respect assertions and change the optimization level (using the `-O` flag.)
89+
90+
## Choosing a build mode and a renderer
91+
92+
Flutter web provides two build modes (default and WebAssembly) and two renderers
93+
(`canvaskit` and `skwasm`).
94+
95+
For more information, see [Web renderers][].
96+
8297
## Deploying to the web
8398

8499
When you are ready to deploy your app,

0 commit comments

Comments
 (0)