{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/491","repository_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails","labels_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/491/comments","events_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/491/events","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/491","id":181190965,"number":491,"title":"Heroku slug size: can node_modules be deleted after build?","user":{"login":"nruth","id":26158,"avatar_url":"https://avatars.githubusercontent.com/u/26158?v=3","gravatar_id":"","url":"https://api.github.com/users/nruth","html_url":"https://github.com/nruth","followers_url":"https://api.github.com/users/nruth/followers","following_url":"https://api.github.com/users/nruth/following{/other_user}","gists_url":"https://api.github.com/users/nruth/gists{/gist_id}","starred_url":"https://api.github.com/users/nruth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nruth/subscriptions","organizations_url":"https://api.github.com/users/nruth/orgs","repos_url":"https://api.github.com/users/nruth/repos","events_url":"https://api.github.com/users/nruth/events{/privacy}","received_events_url":"https://api.github.com/users/nruth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-05T15:40:19Z","updated_at":"2016-10-05T16:37:12Z","closed_at":null,"body":"3 apps takes the slug size up towards 300MB, and it looks like most of this is in node_modules that shouldn't be necessary after the precompile step creates the javascript and css assets?\r\n\r\nPoking around with `heroku run bash` and `du` is showing the node_modules directories as being around 200-500MB which will zip to some extent but shouldn't be necessary.\r\n\r\nIs there a reason I've not thought of for keeping these around in the final dyno slug, or could we add something to delete the files from the slug once asset compilation succeeds?\r\n\r\nThere's something similar in the [Heroku docs for Java](https://devcenter.heroku.com/articles/reducing-the-slug-size-of-java-applications)."},"comment":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/comments/251728596","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/491#issuecomment-251728596","issue_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/491","id":251728596,"user":{"login":"seanpdoyle","id":2575027,"avatar_url":"https://avatars.githubusercontent.com/u/2575027?v=3","gravatar_id":"","url":"https://api.github.com/users/seanpdoyle","html_url":"https://github.com/seanpdoyle","followers_url":"https://api.github.com/users/seanpdoyle/followers","following_url":"https://api.github.com/users/seanpdoyle/following{/other_user}","gists_url":"https://api.github.com/users/seanpdoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpdoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpdoyle/subscriptions","organizations_url":"https://api.github.com/users/seanpdoyle/orgs","repos_url":"https://api.github.com/users/seanpdoyle/repos","events_url":"https://api.github.com/users/seanpdoyle/events{/privacy}","received_events_url":"https://api.github.com/users/seanpdoyle/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T16:37:12Z","updated_at":"2016-10-05T16:37:12Z","body":"@nruth is the simplest solution [introducing a `.slugignore` file](https://devcenter.heroku.com/articles/slug-compiler#ignoring-files-with-slugignore), or am I missing something?"}}
{"actor":{"display_login":"seanpdoyle"}}