提交 85b1e09a 编写于 作者: J Jay Linski 提交者: Evan You

Don't include files from node_modules (#16)

If vuepress is run in the root of a node package
(eg. `vuepress build .`), it would include all markdown files from
the `node_modules` folder, which breaks the build process.
上级 641519d9
......@@ -99,7 +99,7 @@ async function resolveOptions (sourceDir) {
? path.resolve(siteConfig.dest)
: path.resolve(sourceDir, '.vuepress/dist'),
publicPath: base,
pageFiles: sort(await globby(['**/*.md', '!.vuepress'], { cwd: sourceDir })),
pageFiles: sort(await globby(['**/*.md', '!.vuepress', '!node_modules'], { cwd: sourceDir })),
pagesData: null,
themePath: null,
notFoundPath: null,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册