Skip to content

Commit 08a2c31

Browse files
committed
docs: faq
1 parent 1634d23 commit 08a2c31

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Bundleless means that each source file is compiled and built separately, which c
88

99
1. Set `source.entry` to remove `.less/.scss` files from the entry.
1010
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.
11+
3. Set `redirect.style.extension` to `false` to disable the redirect behavior for the import path of `.less/.scss` files.
1212

1313
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

@@ -26,7 +26,9 @@ export default defineConfig({
2626
copy: [{ from: '**/*.scss', context: path.join(__dirname, 'src') }],
2727
},
2828
redirect: {
29-
style: false,
29+
style: {
30+
extension: false,
31+
},
3032
},
3133
},
3234
],

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ bundleless 是指对每个源文件单独进行编译构建,可以理解为仅
88

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

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

@@ -26,7 +26,9 @@ export default defineConfig({
2626
copy: [{ from: '**/*.scss', context: path.join(__dirname, 'src') }],
2727
},
2828
redirect: {
29-
style: false,
29+
style: {
30+
extension: false,
31+
},
3032
},
3133
},
3234
],

0 commit comments

Comments
 (0)