How to ignore build files on replit? .replitignore?

Question: How does one ignore build files on replit?

The scenario is super-simple: you have a REPL which compiles/transpiles some code to a build or dist directory, but you don’t want that directory to be saved to replit storage. Or you have a script that creates a tar/zip file.

Git has .gitignore (which seems to have no effect on replit), docker has .dockerignore, NPM prettier has .prettierignore, ESlint has .eslintignore… For the life of me I can’t find any information on this super-essential, basic feature.

You want to hide the files from the file tree? Add to hidden in .replit file


It does if you use Replit Git