You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.
This module (functionally) works just great. Solves most of my project's SVG needs. The only problem - but huge enough to make itself almost unusable - is bundle size.
On a fresh ng new myapp application, with ng-inline-svg installed and [inlineSVG] applied to just one div, the bundle size after ng build --prod --aot --build-optimizer jumps from 170kb to 400+kb.
Is there anything you can do about it?
The text was updated successfully, but these errors were encountered:
I don't have much knowledge about AOT optimizations (I stopped actively using Angular before AOT was really a thing), so I'd definitely be grateful for any pointers here.
Just checked in my app with webpack-bundle-analyzer and for ng-inline-svg/lib it lists less than 3kb gziped.
In my code I'm only importing InlineSVGModule.
My app is not a fresh new application. maybe @moniuch you can use webpack-bundle-analyzer and check what takes the space in you build?
This module (functionally) works just great. Solves most of my project's SVG needs. The only problem - but huge enough to make itself almost unusable - is bundle size.
On a fresh
ng new myapp
application, withng-inline-svg
installed and[inlineSVG]
applied to just one div, the bundle size afterng build --prod --aot --build-optimizer
jumps from 170kb to 400+kb.Is there anything you can do about it?
The text was updated successfully, but these errors were encountered: