This is a slightly contrived example of an issue in Gatsby that occurs in the niche situation of importing an external file into gatsby-config
as a plugin's pluginOptions
- when that imported file changes but gatsby-config
does not, the resulting build does not have its cache cleared and can cause changes that would result from the configuration change not to occur in the resulting build.
-
gatsby develop
-
Navigate to
localhost:8000/example-post
-
Uncomment the commented line in
mdx-options.js
-
Relaunch
gatsby develop
and refreshlocalhost:8000/example-post
-
Notice that the page does not use
post-template.js
(shown with padding and a black border) -
Close
gatsby develop
and rungatsby clean
before relaunching -
Refresh the browser again, and notice that the page changes once the stale cache is cleared