Use .slugignore to remove files before building on Heroku!
Heroku supports a .slugignore
file that works similarly to a .gitignore
. Heroku will remove any file referenced in it after checkout and before building a new slug.
https://devcenter.heroku.com/articles/slug-compiler#ignoring-files-with-slugignore