How to reduze the size of final bundle (css/js)?


#1

My JS and CSS vahe 11,9MB.

How could I reduce their size for deploy?


#2

I had the same question not long ago and found out that, at build, this does the trick:
ionic build --prod --release


#3

I got this error:

✗ You cannot run iOS unless you are on Mac OS`X.

then I used:
ionic build browser --prod --release

It reduced the final bundle a little bit.


#4

Unfortunately ionic build browser --prod --release is breaking all my flexbox css