Skip to content

Commit e7f9226

Browse files
committed
chore: update
1 parent 6ab7b3a commit e7f9226

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## Style Processing
44

5-
### How to skip the preprocessing of `less/scss` files in bundleless mode?
5+
### How to skip the preprocessing of Less / Sass files in bundleless mode?
66

7-
Bundleless means that each source file is compiled and built separately, which can be understood as the process of code conversion of source files only. To skip the preprocessing of `less/scss` files, you need to:
7+
Bundleless means that each source file is compiled and built separately, which can be understood as the process of code conversion of source files only. To skip the preprocessing of `.less/.scss` files, you need to:
88

9-
1. Set `source.entry` to remove `less/scss` files from the entry.
10-
2. Set `output.copy` to copy `less/scss` files to the output directory.
11-
3. Set `redirect.style` to `false` to disable the redirect behavior for the import path of `less/scss` files.
9+
1. Set `source.entry` to remove `.less/.scss` files from the entry.
10+
2. Set `output.copy` to copy `.less/.scss` files to the output directory.
11+
3. Set `redirect.style` to `false` to disable the redirect behavior for the import path of `.less/.scss` files.
1212

13-
Below is an example of skipping the `scss` file processing. All `scss` files in `src` will be copied to the output directory and retained with consistent relative paths.
13+
Below is an example of skipping the `.scss` file processing. All `.scss` files in `src` will be copied to the output directory and retained with consistent relative paths.
1414

1515
```ts title="rslib.config.ts"
1616
export default defineConfig({

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## 样式处理
44

5-
### bundleless 模式如何跳过对 `less/scss` 文件的预处理
5+
### bundleless 模式如何跳过对 Less / Sass 等文件的预处理
66

7-
bundleless 是指对每个源文件单独进行编译构建,可以理解为仅对源文件进行代码转换的过程。跳过对 `less/scss` 文件的预处理需要:
7+
bundleless 是指对每个源文件单独进行编译构建,可以理解为仅对源文件进行代码转换的过程。跳过对 `.less/.scss` 文件的预处理需要:
88

9-
1. 设置 `source.entry``less/scss` 文件从入口里移除。
10-
2. 设置 `output.copy``less/scss` 文件拷贝到产物目录。
11-
3. 设置 `redirect.style``false` 禁用对 `less/scss` 文件导入路径的重定向行为。
9+
1. 设置 `source.entry``.less/.scss` 文件从入口里移除。
10+
2. 设置 `output.copy``.less/.scss` 文件拷贝到产物目录。
11+
3. 设置 `redirect.style``false` 禁用对 `.less/.scss` 文件导入路径的重定向行为。
1212

13-
下面是一个跳过 `scss` 文件处理的例子,`src` 里面所有的 `scss` 文件都会被拷贝到产物目录下并且保留一致的相对路径。
13+
下面是一个跳过 `.scss` 文件处理的例子,`src` 里面所有的 `.scss` 文件都会被拷贝到产物目录下并且保留一致的相对路径。
1414

1515
```ts title="rslib.config.ts"
1616
export default defineConfig({

0 commit comments

Comments
 (0)