Skip to content

Instantly share code, notes, and snippets.

View rockaBe's full-sized avatar

Bernd Nähler rockaBe

  • Babbel
  • Berlin, Germany
View GitHub Profile
@rockaBe
rockaBe / Gatsby-bootstrap-lifecycle.md
Created January 24, 2021 12:50 — forked from swyxio/Gatsby-bootstrap-lifecycle.md
Gatsby bootstrap lifecycle

Sequence of Gatsby's bootstrap lifecycle with links to source code as of v2.0.0

  1. open and validate gatsby-config (get-config-file.js) 1.5 load themes (swyx added this note July 2019)
  2. load plugins (load-plugins/index.js) from the list given in gatsby-config.js
  3. onPreBootstrap: runs onPreBootstrap if it is implemented in any plugins, for example gatsby-plugin-typography. Receives handy [apiCallArgs](https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c9