Hi. I’m working on an Ionic 2 progressive web app. My main.js is a plump 6.0mb (before gzip compression), which seems large to me considering my entire pages folder is 1.5mb.
What are some things I can check to improve the file size?
Does using a lot of imports have any impact on the overall file size?
I tried running minify on it but it only reduced to 5.9mb…
I’ve heard AoT compiling is supposed to be a big help, but isn’t it on by default? Is there any setting for that anywhere or how can I check to make sure it’s working?
PS. the only npm module I’ve added since starting the project is moment.js.