Skip to content

Commit

Permalink
heroku: Uninstall devDependencies after build
Browse files Browse the repository at this point in the history
This should help reduce the size of the slug. From https://dashboard.heroku.com/apps/reported-web/activity/builds/c343e368-6f2d-454f-97b1-de7c67723b88:

     !     Warning: Your slug size (307 MB) exceeds our soft limit (300 MB) which may affect boot time.

See https://devcenter.heroku.com/changelog-items/1145
and yarnpkg/yarn#696 (comment)
  • Loading branch information
josephfrazier committed Oct 1, 2019
1 parent 6ce7b62 commit bba6441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -198,7 +198,7 @@
"clean": "babel-node tools/run clean",
"copy": "babel-node tools/run copy",
"bundle": "babel-node tools/run bundle",
"heroku-postbuild": "yarn run build --release",
"heroku-postbuild": "yarn run build --release && yarn install --production --ignore-scripts --prefer-offline",
"build": "babel-node tools/run build",
"build-stats": "yarn run build --release --analyse",
"deploy": "babel-node tools/run deploy",
Expand Down

0 comments on commit bba6441

Please sign in to comment.