Skip to content

Commit

Permalink
Exit on error during build
Browse files Browse the repository at this point in the history
  • Loading branch information
m-allanson committed Feb 26, 2018
1 parent 57375ee commit 68cfa35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/gatsby/src/bootstrap/load-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ module.exports = async (config = {}) => {
reporter.error(rendererPlugins.join(`, `))
reporter.error(`This will break your build`)
reporter.error(`See: https://www.gatsbyjs.org/docs/debugging-replace-renderer-api/`)
if (process.env.NODE_ENV === `production`) process.exit(1)
}

// Now update plugin list so only final replaceRenderer will run
Expand Down

0 comments on commit 68cfa35

Please sign in to comment.