Skip to content

Commit 94a0afb

Browse files
committed
chore: update
1 parent aa64654 commit 94a0afb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

website/docs/en/guide/faq/features.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default {
185185

186186
### Why does using `modifyRsbuildConfig` to modify the configuration does not take effect?
187187

188-
Rslib internally generates Rsbuild's environments configurations, and each configuration item in the [lib](/config/lib) array corresponds to a specific environment configuration.
188+
Rslib internally generates Rsbuild's environments configurations, and each configuration item in the [lib](/config/lib/index) array corresponds to a specific environment configuration.
189189

190190
[modifyRsbuildConfig](https://rsbuild.rs/plugins/dev/hooks#modifyrsbuildconfig) is a global hook that cannot be effective for configurations under a specific environment. It is usually used in Rslib to modify globally effective plugins, etc. Therefore, you need to use [modifyEnvironmentConfig](https://rsbuild.rs/plugins/dev/hooks#modifyenvironmentconfig) instead to modify the configuration of a specific environment.
191191

website/docs/zh/guide/faq/features.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default {
185185

186186
### 为什么使用 `modifyRsbuildConfig` 修改配置不生效?
187187

188-
Rslib 会在内部生成 Rsbuild 的 environments 配置,每一个 [lib](/config/lib) 数组中的配置项对应一个特定 environment 配置。
188+
Rslib 会在内部生成 Rsbuild 的 environments 配置,每一个 [lib](/config/lib/index) 数组中的配置项对应一个特定 environment 配置。
189189

190190
[modifyRsbuildConfig](https://rsbuild.rs/zh/plugins/dev/hooks#modifyrsbuildconfig) 是一个全局 hook,无法对特定 environment 下的配置生效,在 Rslib 中通常用于修改全局生效的 plugins 等。因此需要使用 [modifyEnvironmentConfig](https://rsbuild.rs/zh/plugins/dev/hooks#modifyenvironmentconfig) 代替来修改特定 environment 的配置。
191191

0 commit comments

Comments
 (0)