You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9fff7ec
Browse filesBrowse the repository at this point in the historyBrowse files
The `rs build` command uses [Rsbuild](https://rsbuild.rs/guide/basic/cli#rsbuild-build) to build an application for production.
4
+
5
+
## Usage
6
+
7
+
```bash
8
+
rs build [options]
9
+
```
10
+
11
+
The command loads the application configuration registered with [`define.app()`](../configuration#define-app).
12
+
13
+
## Options
14
+
15
+
`rs build` supports the same build options as Rsbuild. See the [Rsbuild CLI documentation](https://rsbuild.rs/guide/basic/cli#rsbuild-build) for details.
16
+
17
+
Examples:
18
+
19
+
```bash
20
+
# Write output files to the output directory
21
+
rs build --dist-path output
22
+
23
+
# Generate source maps for the output files
24
+
rs build --source-map
25
+
26
+
# Rebuild when files change
27
+
rs build --watch
28
+
```
4
29
5
30
## Configuration
6
31
7
-
See [`define.app()`](../configuration#define-app).
32
+
Configure the production build through [`define.app()`](../configuration#define-app) in the [Rstack configuration file](/guide/configuration#configuration-file). It accepts the standard [Rsbuild configuration](https://rsbuild.rs/config/):
Copy file name to clipboardExpand all lines: website/docs/en/guide/cli/dev.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ The `rs dev` command starts the [Rsbuild development server](https://rsbuild.rs/
8
8
rs dev [options]
9
9
```
10
10
11
-
The command loads the application configuration registered with [`define.app()`](../configuration#define-app). When the Rstack configuration file or one of its imported dependencies changes, Rstack automatically restarts the development server and applies the updated configuration.
11
+
The command loads the application configuration registered with [`define.app()`](../configuration#define-app).
0 commit comments