Weightage of the bundle


#1

Hi,

We are in the process of developing our PWA site using Ionic. But, when checking the weightage of the cached site, its showing 6 MB (none of the component are loaded, but with the basic tab theme). While checking, we found the JS / CSS which comprises to 3 MB (approx) is getting loaded. Is there any way with which we can download less weight JS/CSS.

Regards.


#2

How did you build your app?


#3

We are generating the build by giving “ionic serve”.


#4

Try npm run build --prod.