Skip to content

Commit 0a06c95

Browse files
committed
docs: translate
1 parent 4073e70 commit 0a06c95

File tree

4 files changed

+54
-5
lines changed

4 files changed

+54
-5
lines changed

website/docs/en/config/rsbuild/index.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ To learn more about Rslib configurations, check out [Configure Rslib](/guide/bas
1111

1212
## Overview
1313

14-
- [source](/config/rsbuild/source): Configure the source code parsing and compilation options.
15-
- [output](/config/rsbuild/output): Configure the build outputs.
16-
- [tools](/config/rsbuild/tools): Configure the low-level tools.
14+
- [resolve](/config/rsbuild/resolve): Options for module resolution.
15+
- [source](/config/rsbuild/source): Options for input source code.
16+
- [output](/config/rsbuild/output): Options for build outputs.
17+
- [tools](/config/rsbuild/tools): Options for low-level tools.
1718
- [plugins](/config/rsbuild/plugins): Configure Rsbuild plugins.

website/docs/en/config/rsbuild/tools.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { RsbuildDocBadge } from '@components/RsbuildDocBadge';
22

33
# tools
44

5-
Configure the low-level tools.
5+
Options for low-level tools.
66

77
## tools.bundlerChain <RsbuildDocBadge path="/config/tools/bundler-chain" text="tools.bundlerChain" />
88

9-
[rspack-chain](https://github.com/rspack-contrib/rspack-chain) is a utility library for configuring Rspack.
9+
[rspack-chain](https://github.com/rspack-contrib/rspack-chain) is a utility library for configuring Rspack. By using `rspack-chain`, you can more easily modify and extend Rspack configurations.
1010

1111
{/* ## tools.cssExtract <RsbuildDocBadge path="/config/tools/css-extract" text="tools.cssExtract" /> */}
1212

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1+
import { RsbuildDocBadge } from '@components/RsbuildDocBadge';
2+
13
# Rsbuild 配置
4+
5+
Rslib 继承了 Rsbuild 的配置,所以你也可以配置 <RsbuildDocBadge path="/config" text="config" /> 选项。本章节介绍了一些常见的配置项,并解释了如何在 Rslib 中使用它们。
6+
7+
:::tip
8+
要了解更多关于 Rslib 的配置,请查看 [Configure Rslib](/guide/basic/configure-rslib)
9+
:::
10+
11+
## 概览
12+
13+
- [resolve](/config/rsbuild/resolve): 与模块解析相关的选项。
14+
- [source](/config/rsbuild/source): 与输入的源代码相关的选项。
15+
- [output](/config/rsbuild/output): 与构建产物相关的选项。
16+
- [tools](/config/rsbuild/tools): 与底层工具相关的选项。
17+
- [plugins](/config/rsbuild/plugins): 配置 Rsbuild 插件。
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
1+
import { RsbuildDocBadge } from '@components/RsbuildDocBadge';
2+
13
# tools
4+
5+
与底层工具相关的选项。
6+
7+
## tools.bundlerChain <RsbuildDocBadge path="/config/tools/bundler-chain" text="tools.bundlerChain" />
8+
9+
[rspack-chain](https://github.com/rspack-contrib/rspack-chain) 是一个用于配置 Rspack 的工具库,通过 `tools.bundlerChain` 可以调用 `rspack-chain` 以修改默认的 Rspack 配置。
10+
11+
## tools.cssLoader <RsbuildDocBadge path="/config/tools/css-loader" text="tools.cssLoader" />
12+
13+
Rsbuild 默认使用 [css-loader](https://github.com/webpack-contrib/css-loader) 来处理 CSS 资源。你可以通过 `tools.cssLoader` 来修改 css-loader 的选项。
14+
15+
## tools.lightningcssLoader <RsbuildDocBadge path="/config/tools/lightningcss-loader" text="tools.lightningcssLoader" />
16+
17+
通过 `tools.lightningcssLoader` 可以设置 [builtin:lightningcss-loader](https://rspack.dev/guide/features/builtin-lightningcss-loader) 的选项。
18+
19+
## tools.postcss <RsbuildDocBadge path="/config/tools/postcss" text="tools.postcss" />
20+
21+
Rsbuild 默认集成 PostCSS,你可以通过 `tools.postcss`[postcss-loader](https://github.com/webpack-contrib/postcss-loader) 进行配置。
22+
23+
## tools.rspack <RsbuildDocBadge path="/config/tools/rspack" text="tools.rspack" />
24+
25+
`tools.rspack` 选项用于修改 [Rspack](https://rspack.dev/) 的配置项。
26+
27+
## tools.styleLoader <RsbuildDocBadge path="/config/tools/style-loader" text="tools.styleLoader" />
28+
29+
通过 `tools.styleLoader` 可以设置 [style-loader](https://github.com/webpack-contrib/style-loader) 的配置项。
30+
31+
## tools.swc <RsbuildDocBadge path="/config/tools/swc" text="tools.swc" />
32+
33+
通过 `tools.swc` 可以设置 [builtin:swc-loader](https://rspack.dev/guide/features/builtin-swc-loader) 的选项。

0 commit comments

Comments
 (0)