Ionic2 - Tree Shaking of main.js & main.css

Hello,

Currently when we execute “ionic build --prod” to build for production, the main.css and main.js accounts for more than 2MB. For some this might seems reasonable, however the app I’m shipping is going to countries with low speed internet.

Does anyone know if the Ionic team is planning to do some Tree Shaking on their main.css and main.js ? I.e. if I am not using Fab Controller for example, the js & css for Fab Controller doesn’t get compiled into my prod build ?

Thank you !!

1 Like