From 94581a9871bb9a3ea343a62505d6f55f56723899 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Wed, 28 Sep 2016 15:08:51 -0700 Subject: [PATCH] Really disable postBuild extension --- lib/utils/build.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/utils/build.js b/lib/utils/build.js index 41ee3436bd546..efaba5e89119d 100644 --- a/lib/utils/build.js +++ b/lib/utils/build.js @@ -14,15 +14,15 @@ import { pagesDB } from './globals' function customPost (program, callback) { const directory = program.directory let customPostBuild - try { - // $FlowIssue - https://github.com/facebook/flow/issues/1975 - const gatsbyNodeConfig = require(`${directory}/gatsby-node`) - customPostBuild = gatsbyNodeConfig.postBuild - } catch (e) { - if (e.code !== `MODULE_NOT_FOUND` && !_.includes(e.Error, `gatsby-node`)) { - console.log(`Failed to load gatsby-node.js, skipping custom post build script`, e) - } - } + //try { + //// $FlowIssue - https://github.com/facebook/flow/issues/1975 + //const gatsbyNodeConfig = require(`${directory}/gatsby-node`) + //customPostBuild = gatsbyNodeConfig.postBuild + //} catch (e) { + //if (e.code !== `MODULE_NOT_FOUND` && !_.includes(e.Error, `gatsby-node`)) { + //console.log(`Failed to load gatsby-node.js, skipping custom post build script`, e) + //} + //} if (customPostBuild) { console.log(`Performing custom post-build steps`)