Title: [Enhancement] Webpack and friends as alternative for underlying build/bundling system. · Issue #909 · angular/angular-cli · GitHub
Open Graph Title: [Enhancement] Webpack and friends as alternative for underlying build/bundling system. · Issue #909 · angular/angular-cli
X Title: [Enhancement] Webpack and friends as alternative for underlying build/bundling system. · Issue #909 · angular/angular-cli
Description: 🐘 Alright its time to address the elephant in the room. 🐘 Lets talk about Webpack integration CLI Is incrediballz, but SystemJS is a less-than-desirable and less-than-configuration-friendly experience. Use Webpack to have an awesome expe...
Open Graph Description: 🐘 Alright its time to address the elephant in the room. 🐘 Lets talk about Webpack integration CLI Is incrediballz, but SystemJS is a less-than-desirable and less-than-configuration-friendly experie...
X Description: 🐘 Alright its time to address the elephant in the room. 🐘 Lets talk about Webpack integration CLI Is incrediballz, but SystemJS is a less-than-desirable and less-than-configuration-friendly experie...
Opengraph URL: https://github.com/angular/angular-cli/issues/909
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Enhancement] Webpack and friends as alternative for underlying build/bundling system.","articleBody":"🐘 Alright its time to address the elephant in the room. 🐘 \n### Lets talk about Webpack integration\n\nCLI Is incrediballz, but SystemJS is a less-than-desirable and less-than-configuration-friendly experience. \n### Use Webpack to have an awesome experience for all environments\n\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. \n### Things should be easy to configure\n\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.\n### Shouldn't replace SystemJS\n\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)\n### `ng init --use-webpack`\n\nAdding a simple flag like `ng init --use-webpack` might be a tolerable alternative that people would be more than happy to use. \n### There are great repo's out there for a starting point\n\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.\n### I can probably help too\n\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.\n\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_.\n\nUPDATE: to add requirements.\n#### Requirements\n- [ ] existing preprocessor support\n - [x] less\n - [x] sass\n - [ ] compass (?)\n - [x] stylus\n - [x] postcss (with plugins?)\n - [x] style sourcemaps\n- [x] tree-shaking and dead code elimination\n - [x] TS2.0? es6 => es5\n - [x] Babel?\n - [ ] tsickle+gcc@advanced?\n- [x] cacheable vendors chunk w/ cache busted main app\n- [x] fast build and serve\n - [x] incremental build and in memory fs cache\n - [ ] multicore/cluster/forked worker support\n- [x] support for existing projects\n - [x] migration path (if needed)\n - [x] test against test-app\n - [x] test against material 2\n- [x] 3rd party module support\n - [x] should be as simple as `npm install` w/ import in app.\n - [x] CommonJS, CommonJS2, AMD, ES6, UMD\n- [x] testing support\n - [x] karma integration\n - [x] configurable karma.conf yet bundle 'protected'\n - [x] w/ Istanbul coverage\n - [x] e2e w/ protractor\n- [x] JS sourcemaps support\n - [x] pre/post trans?\n- [x] dynamic on demand bundles\n - [x] `System.import` support which creates async dynamic bundle\n- [ ] Routing \n - [ ] Async Route Handling automagically?\n- [ ] ngc support\n - [ ] if not ts.LSH support, build step\n - [ ] should not be slow\n- [ ] asset support\n - [x] assets copied over in distribution bundle\n - [x] automagically resolve images\n - [ ] if under x size, base64 and inline image\n - [ ] if over x size, serve asset inside of assets folder\n - [ ] support for fonts\n - [ ] inline SVGs?\n","author":{"url":"https://github.com/TheLarkInn","@type":"Person","name":"TheLarkInn"},"datePublished":"2016-05-25T01:57:34Z","url":"https://github.com/angular/angular-cli/issues/909"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:92de6474-9dac-676f-9feb-ffef61c3f246 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBA0:10014:12EE150:19DD9F1:6B0567D4 |
| html-safe-nonce | ffbf29baabba28e7fc85beaa5fb16c75f12b597e0368225dae2398abd0661fb4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkEwOjEwMDE0OjEyRUUxNTA6MTlERDlGMTo2QjA1NjdENCIsInZpc2l0b3JfaWQiOiI0NDc5MDEwODM4MzE3MTk3MjY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 20cdca6692e5c234b2dba276fbef55f4362af0671a4f780df7da7901feacda8e |
| hovercard-subject-tag | issue:156647168 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/909/issue_layout |
| twitter:image | https://opengraph.githubassets.com/727e14b3fc196053c1247c67d7982cf0add08ad6a98ab5bdca7a0ab422811bd5/angular/angular-cli/issues/909 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/727e14b3fc196053c1247c67d7982cf0add08ad6a98ab5bdca7a0ab422811bd5/angular/angular-cli/issues/909 |
| og:image:alt | 🐘 Alright its time to address the elephant in the room. 🐘 Lets talk about Webpack integration CLI Is incrediballz, but SystemJS is a less-than-desirable and less-than-configuration-friendly experie... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheLarkInn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1be5cc09efdd4833c24a4ffa71d698e3999fa09071e159fe14c2c08e41c98331 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f6d69234e682c947a48074340e69d45d5901de31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width