{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/909","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/909/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/909/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/909/events","html_url":"https://github.com/angular/angular-cli/issues/909","id":156647168,"number":909,"title":"[Enhancement] Webpack and friends as alternative for underlying build/bundling system.","user":{"login":"TheLarkInn","id":3408176,"avatar_url":"https://avatars.githubusercontent.com/u/3408176?v=3","gravatar_id":"","url":"https://api.github.com/users/TheLarkInn","html_url":"https://github.com/TheLarkInn","followers_url":"https://api.github.com/users/TheLarkInn/followers","following_url":"https://api.github.com/users/TheLarkInn/following{/other_user}","gists_url":"https://api.github.com/users/TheLarkInn/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLarkInn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLarkInn/subscriptions","organizations_url":"https://api.github.com/users/TheLarkInn/orgs","repos_url":"https://api.github.com/users/TheLarkInn/repos","events_url":"https://api.github.com/users/TheLarkInn/events{/privacy}","received_events_url":"https://api.github.com/users/TheLarkInn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular-cli/labels/command:%20build","name":"command: build","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular-cli/labels/phase:%20proposal","name":"phase: proposal","color":"207de5"},{"url":"https://api.github.com/repos/angular/angular-cli/labels/type:%20enhancement","name":"type: enhancement","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2016-05-25T01:57:34Z","updated_at":"2016-05-31T15:46:22Z","closed_at":null,"body":"🐘 Alright its time to address the elephant in the room. 🐘 \r\n\r\n### Lets talk about Webpack integration\r\nCLI Is incrediballz, but SystemJS is a less-than-desirable and less-than-configuration-friendly experience. \r\n\r\n### Use Webpack to have an awesome experience for all environments\r\nCLI was built to make rapid development easy and awesome with Angular and I don't think it should stop there. Out of the box, CLI users should have a bundling system in place that automagically handles giving them a production ready bundle of their Angular code that they spent the tireless 20 command lines to boilerplate. \r\n\r\n### Things should be easy to configure\r\nAdditionally, handling external libraries, build configuration, async module loading, source mapping, code splitting, code sharing, beautifying, etc. should be EASY to reconfigure if a user wants to. Currently it isn't.\r\n\r\n### Shouldn't replace SystemJS\r\nI do not think that we should rid of SystemJS entirely, however I do believe that it is important that we provide an alternative for people to use. (SystemJS has provided very successful for plunks and apps no larger than 300kb)\r\n\r\n### `ng init --use-webpack`\r\nAdding a simple flag like `ng init --use-webpack` might be a tolerable alternative that people would be more than happy to use. \r\n\r\n### There are great repo's out there for a starting point\r\nI think @gdi2290 @foxandxss 's starters are community wide accepted examples of multi environment webpack setups that would be perfect as a starting point. Plus when Weback 2 ships from beta, we'll be able to leverage tree-shaking, async module loading, etc.\r\n\r\n### I can probably help too\r\nI will add to this issue a more concrete proposal on how Webpack integration might be setup at a high level. (Although really the only thing the user should have to do is ad the --use-webpack flag and everything else should _feel_ or _work_ the same.\r\n\r\n@Brocco @hansl we can communicate about this more at length but I'd not only like to hear your thoughts, but community thoughts and opinions as well. Doing this integration _the right way_ should pave the way for giving people the option to have **other integrations** _the right way too_."},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/222730804","html_url":"https://github.com/angular/angular-cli/issues/909#issuecomment-222730804","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/909","id":222730804,"user":{"login":"robwormald","id":534930,"avatar_url":"https://avatars.githubusercontent.com/u/534930?v=3","gravatar_id":"","url":"https://api.github.com/users/robwormald","html_url":"https://github.com/robwormald","followers_url":"https://api.github.com/users/robwormald/followers","following_url":"https://api.github.com/users/robwormald/following{/other_user}","gists_url":"https://api.github.com/users/robwormald/gists{/gist_id}","starred_url":"https://api.github.com/users/robwormald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwormald/subscriptions","organizations_url":"https://api.github.com/users/robwormald/orgs","repos_url":"https://api.github.com/users/robwormald/repos","events_url":"https://api.github.com/users/robwormald/events{/privacy}","received_events_url":"https://api.github.com/users/robwormald/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T15:46:21Z","updated_at":"2016-05-31T15:46:21Z","body":"@hansl we should probably add \"lazy loading\" to that list of reqs, or at least \"doesn't preclude programatic lazy loading in a sane fashion\"\r\n\r\nWebpack2 is better about this, I'm just not sure on the status of where it is in beta land"}}
{"actor":{"display_login":"robwormald"}}