Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-debug-build

Gatsby plugin to force the dev version of builds

This is a Gatsby plugin that simply removes any UglifyJsPlugin instances from the webpack chain and sets the NODE_ENV to development. This makes webpack include the full development bundle of react in your built project, which is useful for debugging runtime errors in the compiled output.

NOT FOR USE IN PRODUCTION

This is a debugging utility. Don’t do stupid things with it.

Usage

Add it to your project

yarn add gatsby-plugin-debug-build

Then add it to your gatsby-config.js:

{
  plugins: [
    'gatsby-plugin-debug-build',
  ]
}
© 2023 Gatsby, Inc.