My vendor.js is 22.3MB and my styles.js is 10.4mb. the app runs badly. where and what do i clean up? Which file do I edit to reduce the stuff that's bundled?
Thanks
A
8 Answer(s)
-
0
Hi,
Are you seeing those sizes on development environment or on production ?
Thanks,
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
if you build with these flags the size goes way down.
ng --prod=true --optimization=true --aot
I've been having some problems using the --aot flag due to compilation issues.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I get this error: what to do?
Your global Angular CLI version (7.1.2) is greater than your local version (7.1.0). The local Angular CLI version is used.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
sudo npm install -g @angular/cli
??
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
just ran that and now:
Your global Angular CLI version (7.3.8) is greater than your local version (7.1.0). The local Angular CLI version is used.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
1
That's just a warning, not an error?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
BTW, I also found that upgrading from 6.6.1 to 6.9.1 had better performance.
Not exactly sure what spcifically changed. But is somehow seems faster.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I wanted to comment because I recently ran into this issue
When you update the installed Node, Angular, and Angular CLI software on your computer you can gain better processing and bundling
As far as sizes are concerned if you already updated Node/Angular, when you build in production mode your files should be optimized
If you are seeing that there is large file sizes loading to the browser which is causing performance issues, look into compression.
If you're on IIS: https://docs.microsoft.com/en-us/iis/extensions/iis-compression/iis-compression-overview
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)