Skip to content

Commit ff39b70

Browse files
Apply suggestions from code review
Co-authored-by: Timeless0911 <[email protected]>
1 parent ad81da6 commit ff39b70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

website/docs/en/config/lib/redirect.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ import '@/foo.css'; // source code of './src/utils/index.ts' ↓
122122
import '../foo.css'; // expected output of './dist/utils/index.js'
123123
```
124124

125-
When importing [CSS Modules](/zh/config/rsbuild/output#outputcssmodules) files:
125+
When importing [CSS Modules](/config/rsbuild/output#outputcssmodules) files:
126126

127127
```ts
128128
import styles from '@/foo.css'; // source code of './src/bar.ts' ↓
@@ -139,7 +139,7 @@ Whether to redirect style file extensions.
139139
- **Type:** `boolean`
140140
- **Default:** `true`
141141

142-
When set to `true`, When importing a normal style file, the path will be rewritten to the `.css` file. When importing [CSS Modules](/zh/config/rsbuild/output#outputcssmodules), the path will be rewritten to the corresponding JavaScript output file.
142+
When set to `true`, When importing a normal style file, the path will be rewritten to the `.css` file. When importing [CSS Modules](/config/rsbuild/output#outputcssmodules), the path will be rewritten to the corresponding JavaScript output file.
143143

144144
When set to `false`, The file extension will remain unchanged from the original import path.
145145

website/docs/zh/config/lib/redirect.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ import styles from '../foo.css'; // './dist/utils/index.js' 预期生成的代
142142
- **类型:** `boolean`
143143
- **默认值:** `true`
144144

145-
当设置为 `true` 时,导入普通样式文件时,路径将被重写为 `.css` 文件,导入 [CSS Modules](/zh/config/rsbuild/output#outputcssmodules) 时,路径将被重写为到对应的 JavaScript 输出文件。
145+
当设置为 `true` 时,导入普通样式文件时,路径将被重写为 `.css` 文件,导入 [CSS Modules](/config/rsbuild/output#outputcssmodules) 时,路径将被重写为到对应的 JavaScript 输出文件。
146146

147147
当设置为 `false` 时,文件扩展名将保持原始导入路径中的不变。
148148

0 commit comments

Comments
 (0)