heroku-buildpack-post-build-clean | remove unwanted files from the slug post | Platform As A Service library
kandi X-RAY | heroku-buildpack-post-build-clean Summary
kandi X-RAY | heroku-buildpack-post-build-clean Summary
Buildpack to remove unwanted files from the slug post-build
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of heroku-buildpack-post-build-clean
heroku-buildpack-post-build-clean Key Features
heroku-buildpack-post-build-clean Examples and Code Snippets
Community Discussions
Trending Discussions on heroku-buildpack-post-build-clean
QUESTION
I have a React app (CRA) that exceeds heroku's maximum slug size soft limit (300MB), so I use this solution to reduce the slug size:
heroku buildpacks:add https://github.com/opencounter/heroku-buildpack-post-build-clean.git
- Add the file
.slug-post-clean
at the project root:
ANSWER
Answered 2021-Nov-06 at 04:23After excluding node-modules/.cache
, the slug size has been reduced down 90% (~400M). So the solution is quite simple:
In .slug-post-clean
, add:
QUESTION
I am developing a Front-end Application and hosting via Heruko
The Problem is that the slug size is too large when i investigated the issue I find out there is files like
...ANSWER
Answered 2020-Apr-26 at 14:15Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install heroku-buildpack-post-build-clean
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page