jurek2006 / angular-contract-hours

Angular application to help reporting contractor's working hours. Learning project to develop an Angular app from scratch.
https://jurek2006.github.io/angular-contract-hours/
0 stars 2 forks source link

Bigger bundle size because of jspdf and html2canvas #8

Open jurek2006 opened 4 years ago

jurek2006 commented 4 years ago

As we can see analyzing bundle size (after making it smaller like in #7 ) - node_modules is slightly bigger than src: image

Whole gzipped main is 296KB big, where src is 140KB and node_modules 155KB. The biggest parts of node_modules are jspdf (86KB gzipped) and html2canvas (39KB gzipped)

jurek2006 commented 4 years ago

As jspdf and html2canvas are used only when generating pdf of the report, these modules should be lazy loaded. But for now routing, needed for lazy loading, is not yet implemented in the application.