Dev's game broke on GitHub clone because dist/ folder was blocked by .gitignore
A developer discovered their web game worked perfectly on Itch.io but failed completely when cloned from GitHub, showing a blank, unclickable canvas. The root cause was a .gitignore rule explicitly excluding the dist/ folder, meaning Git never tracked the production build files. Itch.io worked because builds were manually zipped and uploaded locally, bypassing Git entirely, while GitHub received a repo missing the critical script files. The fix involved skipping the dist/ output path and pointing HTML asset links directly to raw source files instead. After updating and pushing the corrected paths, the cloned repository loaded the game successfully with all event listeners intact.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in