From 02eee1a8ea92b048e026a278087d769a8fc769d0 Mon Sep 17 00:00:00 2001 From: hanlee Date: Mon, 5 Apr 2021 21:50:01 +0900 Subject: [PATCH] feat: add exclude option --- src/node/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/config.ts b/src/node/config.ts index 8938fcfa..9e4831de 100644 --- a/src/node/config.ts +++ b/src/node/config.ts @@ -23,6 +23,7 @@ export interface UserConfig { markdown?: MarkdownOptions customData?: any vueOptions?: VuePluginOptions + exclude?: string[] } export interface SiteConfig { @@ -57,7 +58,7 @@ export async function resolveConfig( root, site, themeDir, - pages: await globby(['**.md'], { cwd: root, ignore: ['node_modules'] }), + pages: await globby(['**.md'], { cwd: root, ignore: ['**/node_modules', ...userConfig.exclude || [] ] }), configPath: resolve(root, 'config.js'), outDir: resolve(root, 'dist'), tempDir: path.resolve(APP_PATH, 'temp'),