From 71a5e1c2a2b552ced8a994dc60201c4be89b4ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Han=EF=BC=88=E3=83=8F=E3=83=B3=EF=BC=89?= Date: Thu, 27 May 2021 17:18:58 +0900 Subject: [PATCH] feat: exclude option (#281) --- 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'),