Errors on the source site that result in 404s all attempt to write to dist/404.html which itself causes the build to fail and nothing to get written.
I tracked this down to using internal tags. Since I only had 4 and wasn't really using them, I deleted them. I guess check for internal tags and skip them?