Skip to content

KishoreBarik/ng-build-chunk

Repository files navigation

NgBuildChunk

This project was generated with Angular CLI version 7.2.2.

The repo was created to help sorting out this issue.

The main focus of the repo is to get understanding of unusual file size generated by angular cli build and fix it. So ng serve might not work and may cause some runtime errors. As some routes might not be present.

The issue

The actual code base generated build contains rxjs chunk size exceeding 900KB. image

This repo contains very minimal code from the actual code base, still issue can be reproduced. This repo produces rxjs chunk around 221KB.

image

But, if we comment the line no 10 in app.routes.module.ts
{ path: "initiate", loadChildren: "./modules/initiate-task/initiate-task.module#InitiateTaskModule" }, the rxjs size reduces to around 30 odd KB. However there is one more chunk of js from webpack gets added sized around 180KB

image

Build command

npm run build

Sourcemap explorer command

npm run smap

About

repo to reproduce angular build issue with rxjs size

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published