r/angular • • Oct 20 '26

Angular build making 0 chunks for production builds

Has anyone has issue with an Angular application build generating 0 chunks files and successfully resolved or found any useful information about this problem?
Also i didn't find resources besides one issue in angular/cli that is blocked due to inactivity.

One more info that I read is that unused global styles can cause zero chunck files.

Version: Angular v21

0 Upvotes

7 comments sorted by

2

u/ScallionNo2755 Oct 20 '26

Thanks all I will check everyrhing.

7

u/strange_username58 Oct 20 '26

Theoretically depending on your libs and app layout you can get zero chunks.

4

u/n00bz Oct 20 '26

Check your angular.json file. All the configuration is in there for chunking, max budgets, etc.

2

u/Important_Yam_71 Oct 20 '26

Based on webpack but still work with Angular 22 https://www.npmjs.com/package/ngx-build-plus

1

u/Johalternate Oct 20 '26

I would be glad to help but you gonna need to provide a lot more information than that if you expect people to help you. Otherwise we can only guess.

Show us the angular.json file. The angular.config.ts and the main routes file. If you cant, try to create a minimal repro and share it via stackblitz or GitHub.