heroku-buildpack-node-cleanup

by ztory

README.md

heroku-buildpack-node-cleanup

Deletes the node_modules folder to decrease slug size.

Usage

$ heroku buildpacks:set https://github.com/ztory/heroku-buildpack-node-cleanup.git

Or add it to the .buildpacks file if using heroku-buildpack-multi:

$ cat .buildpacks
...
https://github.com/ztory/heroku-buildpack-node-cleanup.git

CLI Installation

For new applications:

$ heroku create --buildpack https://github.com/ztory/heroku-buildpack-node-cleanup.git

For existing applications:

$ heroku buildpacks:set https://github.com/ztory/heroku-buildpack-node-cleanup.git -a YOUR_APP_NAME