To test that Gatsby correctly changes its JS bundles with every type of change to site modules a user can make, here we build a site many times, making small changes between builds, to test that the bundle names change correctly.
After each run, move the public folder to public-${runNumber}
.
You can easily compare run outputs with the tool Meld. meld public-1 public-2
.
It'd be nice to automate this but a manual check works for now.
- Hello world
- Add character to src/pages/index.js
- Add import to src/pages/index.js (
import gray from "gray-percentage"
) - Add async import (
import('../async')
) - Add another async import (
import("../async-2")
) - Add character to
async-2.js