Multiple vendor bundle creation using angular cli
I am new to webpack, I am using angular-cli with angular 4. I have added dependencies in package.json. I have mentioned dependencies below. For each dependency i want to create respective vendor bundle. Like i have 5 dependencies i want 5 vendor bundles.
"dependencies": { "@angular/common": "4.4.6", "@angular/compiler": "4.4.6", "@angular/core": "4.4.6", "@angular/forms": "4.4.6", "@angular/http": "4.4.6", "@angular/platform-browser": "4.4.6", "@angular/platform-browser-dynamic": "4.4.6", "@angular/router": "4.4.6", "codelyzer": "^4.1.0", "core-js": "2.5.3", "rxjs": "5.5.6", "zone.js": "0.8.9" } Please help me in creating multiple bundle for each dependency. if possible please share the pros and cons with this approach. Thanks in advance.
Hi @nikhil4326, this is not something we support in Angular CLI. For this kind of usage you should create a custom webpack setup using @ngtools/webpack for compilation.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.