Vuepress Ignore `node_modules`

Is there a way to ignore directories in Vuepress?

(I’m using Vuepress in a mono-repo, to tie some markdown files together and create a nice way to view them. We have multiple vendor code directories that it’s processing as well that just unnecessarily add to the build size and time.)

In case someone stumbles upon this question:
Add '!**/node_modules' to the “patterns” array in the config.js to exclude node_modules in sub directories within a mono-repo.