Skip to content

Commit

Permalink
heroku: Uninstall devDependencies after build (#198)
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 authored Oct 1, 2019
1 parent 6ce7b62 commit a35972b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
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 a35972b

Please sign in to comment.