Skip to content

Commit

Permalink
feat: exclude option (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed May 27, 2021
1 parent 9589a5d commit 71a5e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface UserConfig<ThemeConfig = any> {
markdown?: MarkdownOptions
customData?: any
vueOptions?: VuePluginOptions
exclude?: string[]
}

export interface SiteConfig<ThemeConfig = any> {
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit 71a5e1c

Please sign in to comment.