Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add buildpack for cleaning up the deployed slug
Heroku currently copies our entire repo from `git`, builds the production app, and then copies the entire directory (including the consumed source files etc) to the machine(s) serving the app. We don't need most of that stuff in there, and now (mostly since `node_modules` has gotten quite large, but also other things, like our source images/svgs are there twice) it has gotten big enough (>300MB) that Heroku is starting to warn us about the size. `heroku-buildpack-post-build-clean` takes a `.slug-post-clean` file and deletes things you don't need in there after the build process. My fork gets rid of some errors because comments in the file weren't being ignored previously.
- Loading branch information