{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/1167","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1167/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1167/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1167/events","html_url":"https://github.com/jspm/jspm-cli/issues/1167","id":108608205,"number":1167,"title":"Optimizing deployment, delete unneeded files","user":{"login":"reppners","id":3855704,"avatar_url":"https://avatars.githubusercontent.com/u/3855704?v=3","gravatar_id":"","url":"https://api.github.com/users/reppners","html_url":"https://github.com/reppners","followers_url":"https://api.github.com/users/reppners/followers","following_url":"https://api.github.com/users/reppners/following{/other_user}","gists_url":"https://api.github.com/users/reppners/gists{/gist_id}","starred_url":"https://api.github.com/users/reppners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reppners/subscriptions","organizations_url":"https://api.github.com/users/reppners/orgs","repos_url":"https://api.github.com/users/reppners/repos","events_url":"https://api.github.com/users/reppners/events{/privacy}","received_events_url":"https://api.github.com/users/reppners/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-28T08:12:17Z","updated_at":"2015-09-28T09:42:47Z","closed_at":null,"body":"Since most packages out there are not yet optimized I get a whole lot of files I don't want nor need at runtime. I startet to make overrides for each package that brings an excessive amount of files with them but still there is a whole lot of packages I don't need at runtime.\r\n\r\nIn numbers:\r\n* 47MB, over 4.3k files unbundled\r\n* 6.4MB, 188 files bundled and minified\r\n\r\nSo far I'm bundling and minifying the application but it will grow larger and I really would like to take advantage of the HTTP/2 stuff in the future while keeping the deployment size of the whole app low.\r\n\r\nSo how could we have a step that finds out what my application really needs (imports) and throws away all the rest? Something like \"preen\" in bower."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/143692485","html_url":"https://github.com/jspm/jspm-cli/issues/1167#issuecomment-143692485","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1167","id":143692485,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T09:42:47Z","updated_at":"2015-09-28T09:42:47Z","body":"There are many ways assets can be loaded, so we can never fully know what belongs to a package and what doesn't. Use overrides to set the `files` or `ignore` properties of packages on install to remove unnecessary files."}}