Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
Hotfix: Reduce build time by explicitly ignoring versions
Browse files Browse the repository at this point in the history
  • Loading branch information
milesrichardson committed Jan 26, 2021
1 parent 3bc9c54 commit cad2ec5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/compile/ContentTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ class ContentTree {
build() {
const contentTree = dirTree(
this.rootPath,
{ extensions: /\.(md|mdx|json)$/ },
{
extensions: /\.(md|mdx|json)$/,

// TEMPORARY HACK to eliminate memory error in builds
exclude: /v0\.1\.0|v0\.1\.1|v0\.1\.2|v0\.1\.3|v0\.2\.0|v0\.2\.1|v0\.2\.2|v0\.2\.3|v0\.2\.4/,
},
(item) => {
if (
path.basename(item.path).endsWith(".meta.json") ||
Expand Down

0 comments on commit cad2ec5

Please sign in to comment.