TrilonIO / aspnetcore-angular-universal

ASP.NET Core & Angular Universal advanced starter - PWA w/ server-side rendering for SEO, Bootstrap, i18n internationalization, TypeScript, unit testing, WebAPI REST setup, SignalR, Swagger docs, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.46k stars 433 forks source link

Split webpack build script #551

Open odahcam opened 6 years ago

odahcam commented 6 years ago

I've made a split of the build files separating'em in:

I've also added some comments to help beginners like me.

I've done this because its easier to find and isolate issues in that way, also its a lot easier to understand the configurations because there's almost zero ifs in the code.

I have AOT and minification enabled, everything working with Angular 5.2 with ~very cool~ build notifiers.

Tell me if you have interest in a PR.

odahcam commented 6 years ago

I've made some updates since issue openning, here's how my build config are now:

image

I've also ported some configurations from @angular/cli trying to make my Service Worker work, but it stills doesn't work offline, but only when online (very strange, I know) and I think it's something related to my environment variables.

roshdi commented 6 years ago

thanx. I need your changes. How can i have this webpacks.

odahcam commented 6 years ago

I can do a PR as people wants it. Of course @MarkPieszak will need to agree with that too.

roshdi commented 6 years ago

I need AOT & minification for aspnetcore-angular2-universal and I can't wait for PR. Can you please send them to me @odahcam . I want to test it for a project. Thanx.