{"action":"created","issue":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/256","labels_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/256/comments","events_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/256/events","html_url":"https://github.com/mgechev/angular2-seed/issues/256","id":118062350,"number":256,"title":"Production build","user":{"login":"mgechev","id":455023,"avatar_url":"https://avatars.githubusercontent.com/u/455023?v=3","gravatar_id":"","url":"https://api.github.com/users/mgechev","html_url":"https://github.com/mgechev","followers_url":"https://api.github.com/users/mgechev/followers","following_url":"https://api.github.com/users/mgechev/following{/other_user}","gists_url":"https://api.github.com/users/mgechev/gists{/gist_id}","starred_url":"https://api.github.com/users/mgechev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgechev/subscriptions","organizations_url":"https://api.github.com/users/mgechev/orgs","repos_url":"https://api.github.com/users/mgechev/repos","events_url":"https://api.github.com/users/mgechev/events{/privacy}","received_events_url":"https://api.github.com/users/mgechev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mgechev/angular2-seed/labels/P1","name":"P1","color":"eb6420"},{"url":"https://api.github.com/repos/mgechev/angular2-seed/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-11-20T15:23:00Z","updated_at":"2015-12-10T09:09:19Z","closed_at":"2015-12-10T09:09:19Z","body":"Since Angular 2 is close to beta, here's my suggestion for the production build:\r\n\r\n* [ ] Inline the templates and styles of the individual components (https://www.npmjs.com/package/gulp-inline-ng2-template)\r\n* [ ] Produce a single cjs bundle (browserify would work, since Angular 2 will be distributed with UMD bundles), based on https://github.com/angular/angular/issues/4278\r\n* [ ] Minify bundle's content and add reference in `index.html`\r\n* [ ] Minify all CSS files, create a single bundle and add references in `index.html`\r\n\r\nThere are a few open questions:\r\n\r\n- What would we do with lazy loading of components/services?\r\n- What would we do with shared templates and styles between components?\r\n- What should be the scope of the production build (i.e. should we provide tasks for minification of images for example)?\r\n- More?\r\n\r\nMy suggestion is to ignore the open questions initially and make the build as minimalistic as possible (i.e. minification of images is not something we should consider).\r\n\r\n// cc @ludohenin @NathanWalker @tarlepp @briantopping"},"comment":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/comments/163539453","html_url":"https://github.com/mgechev/angular2-seed/issues/256#issuecomment-163539453","issue_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/256","id":163539453,"user":{"login":"mgechev","id":455023,"avatar_url":"https://avatars.githubusercontent.com/u/455023?v=3","gravatar_id":"","url":"https://api.github.com/users/mgechev","html_url":"https://github.com/mgechev","followers_url":"https://api.github.com/users/mgechev/followers","following_url":"https://api.github.com/users/mgechev/following{/other_user}","gists_url":"https://api.github.com/users/mgechev/gists{/gist_id}","starred_url":"https://api.github.com/users/mgechev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgechev/subscriptions","organizations_url":"https://api.github.com/users/mgechev/orgs","repos_url":"https://api.github.com/users/mgechev/repos","events_url":"https://api.github.com/users/mgechev/events{/privacy}","received_events_url":"https://api.github.com/users/mgechev/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T09:09:18Z","updated_at":"2015-12-10T09:09:18Z","body":"We can close this one."}}