Skip to content

Commit 2a4ba4b

Browse files
authored
docs: add guide for assets report page (#3910)
1 parent daee2ac commit 2a4ba4b

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

website/docs/en/guide/basic/server.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ export default {
1616
};
1717
```
1818

19+
## View Static Assets
20+
21+
After starting the dev server, you can access `/rsbuild-dev-server` to view all static assets generated during this build.
22+
23+
For example, open `http://localhost:3000/rsbuild-dev-server` in the browser, you will see:
24+
25+
<img
26+
src="https://assets.rspack.dev/rsbuild/assets/assets-report-page.png"
27+
alt="rsbuild-dev-server"
28+
width="600"
29+
/>
30+
1931
## Page Routing
2032

2133
Rsbuild Server offers a set of default routing convention, and allows users to customize it through configurations.

website/docs/zh/guide/basic/server.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ export default {
1616
};
1717
```
1818

19+
## 查看静态资源
20+
21+
启动 dev server 后,你可以访问 `/rsbuild-dev-server` 查看 Rsbuild 在本次构建中生成的所有静态资源。
22+
23+
例如,在浏览器中打开 `http://localhost:3000/rsbuild-dev-server`,可以看到:
24+
25+
<img
26+
src="https://assets.rspack.dev/rsbuild/assets/assets-report-page.png"
27+
alt="rsbuild-dev-server"
28+
width="600"
29+
/>
30+
1931
## 页面路由
2032

2133
Rsbuild 的 Server 提供一套默认的路由约定,并允许用户通过配置项定制。

0 commit comments

Comments
 (0)