Skip to content

Commit 4659865

Browse files
committed
docs: filePath regexp
1 parent 44e19ff commit 4659865

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
### 配置项
2222

23-
| 字段 | 必填 | 默认 | 含义 |
24-
| ---------- | ---- | ---------------------------------------------------------------- | ---------------------- |
25-
| importPath ||| 导入路径 |
26-
| isPage || (path) => /(package-.+\/)?pages\/.+\/index\.[tj]sx\$/.test(path) | 判断当前文件是不是页面 |
23+
| 字段 | 必填 | 默认 | 含义 |
24+
| ---------- | ---- | --------------------------------------------------------------------------- | ---------------------- |
25+
| importPath || | 导入路径 |
26+
| isPage || (path) => /(package-.+\/)?pages\/[A-Za-z0-9-]+\/index\.[tj]sx\$/.test(path) | 判断当前文件是不是页面 |
2727

2828
isPage 不传的情况下,默认会将 `src/pages/页面名称/index.[tj]sx``src/package-模块名称/pages/页面名称/index.[tj]sx` 这两种情形下的文件识别为页面。
2929

0 commit comments

Comments
 (0)