intbot / ng2-pdfjs-viewer

An angular component for PDFJS and ViewerJS (Supports all versions of angular)
Apache License 2.0
231 stars 114 forks source link

Bundle Size Is Too Big #96

Open maks-humeniuk opened 4 years ago

maks-humeniuk commented 4 years ago

If viewer is used with { "glob": "**/*", "input": "node_modules/ng2-pdfjs-viewer/pdfjs", "output": "/assets/pdfjs" }, after ng build --prod folder pdfjs is about one third of the whole bundle size. In my case it's 11,3 MB in 31,6 MB bundle. Is there any solution to decrease it?

codehippie1 commented 3 years ago

@Halfist As another user pointed out, the viewer is not using minified version of pdfjs. Will look into this

jordanorc commented 3 years ago

Any progress on this?