Have fun with it.Ī) that you forgot to remove some packages you are not using anymore and/orī) that some packages are way larger than expected and could be replaced with another one and/orĬ) that you have improperly imported some libraries (For example, 80% of moment.js is just locale data which is probably not needed) so that you have some direction to look for an answer. A angular-cli project based on rxjs, tslib, zone.js, angular/core, angular/forms, angular/common, angular/router, angular/compiler, ngx-image-compress, angular/animations, angular/platform-browser and angular/platform-browser-dynamic. Finally, run webpack-bundle-analyzer path/to/your/stats.json and your browser will pop up the page at localhost:8888.By enabling -stats-json you will get an additional file stats.json In your Angular app, run ng build -stats-json (don’t use flag -prod).Webpack has an amazing feature to give us a visual idea of the composition of a webpack bundle. A angular-cli project based on rxjs, tslib, zone. If your bundle size does get too big you may want to analyze your bundle because you may have used an inappropriate large-sized third party package or you forgot to remove some package if you are not using it anymore. Im delighted to share that my article Compress Image In Angular To Boost File Upload Performance has been published in the most popular publication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |