Hi I\'m trying to use angular-cli with webpack (+productivity) to build my angular2 app but I\'m having issues when trying to lazy load modules which were working with versi
Angular-cli changed the build system between beta.10 and beta.14, from SystemJS to Webpack.
I tried using lazy loading with angular-cli(beta.17) and it worked for me.
As per my understanding,
SystemJs - we need to give full path for lazy loading Ex: ./app/dashboard/dashboard.module#DashboardModule
Webpack - we need to give relative path for lazy loading Ex: ./dashboard/dashboard.module#DashboardModule
Note : Don't forget to restart the server to see the changes reflecting.(ng serve)
This minor observation fixed my issue. Please see if this is useful or correct me on anything.