Application Build Size more than 50mb.

Hi Team,


we are using attached package.json and angular.json,

when we are giving  application build ,size of build now 125mb. we required less then 50mb size.


Note: please setup the call available time on Monday IST 2:00pm to 5:00pm

Thanks & Regards

Chalamaiah N




Attachment: package_angularjson_29c63eb9.zip

1 Reply

JC Joseph Christ Nithin Issack Syncfusion Team February 28, 2022 01:19 PM UTC

Hi Narsimsetty, 

Greetings from Syncfusion support 

We have checked your shared information and we could see that you are facing the problem with build size.  

To reduce the bundle size, you can follow the Tree shaking concept and achieve your requirement. By using this Tree shaking concept you can generate the Script and CSS files as smaller size. To enable Tree-shaking you can use below command to run your application. 

 
ng build –prod //to enable tree-shaking  
 

More details on this can be checked in the below documentation link, 


For your convenience we have prepared the sample with your components you are using in your application. please refer the below sample and screenshot for more information. 


Screenshot: 

 

While running “ng build –prod“ command, it generated script files. Please refer the sizes in the below image. 
 
 

If you are already using this approach and still facing the problem, then please share us the following information to identify your exact problem, 

1)         Please share your complete Grid rendering code and also share the other Syncfusion components codes you are using in your application. 

2)         If possible, share us your complete application to replicate the problem or try to reproduce it in our above attached sample. 

Regards, 
Joseph I. 


Loader.
Up arrow icon