Skip to content

Commit 02eee1a

Browse files
committed
feat: add exclude option
1 parent a43933c commit 02eee1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node/config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export interface UserConfig<ThemeConfig = any> {
2323
markdown?: MarkdownOptions
2424
customData?: any
2525
vueOptions?: VuePluginOptions
26+
exclude?: string[]
2627
}
2728

2829
export interface SiteConfig<ThemeConfig = any> {
@@ -57,7 +58,7 @@ export async function resolveConfig(
5758
root,
5859
site,
5960
themeDir,
60-
pages: await globby(['**.md'], { cwd: root, ignore: ['node_modules'] }),
61+
pages: await globby(['**.md'], { cwd: root, ignore: ['**/node_modules', ...userConfig.exclude || [] ] }),
6162
configPath: resolve(root, 'config.js'),
6263
outDir: resolve(root, 'dist'),
6364
tempDir: path.resolve(APP_PATH, 'temp'),

0 commit comments

Comments
 (0)