This repo demonstrates an inconsistency between running Gatsby in develop mode versus the production build. Steps to reproduce:
- After checking the repo out, run
npm install && gatsby develop
- Go to http://localhost:8000/
- Observe the red background of the div containing the string. This is unexpected because
src/pages/index.js
does not importsrc/styles/red.css
, onlysrc/pages/red.js
does. - Stop the develop server and run
gatsby build && gatsby serve
- Go to http://localhost:9000/
- Observe the white background of the div containing the string. This is in stark contrast with step 3, therefore the inconsistency.