The optimization volume of ionic_app-scripts@3.0.1 package compression is too large.

the js file generated by ionic build compression is too large, how should it be optimized?

Mar.10,2021

two common methods

  1. reduce the number of third-party libraries used, or do some tailoring
  2. separates some libraries by dynamically loading them and loading them only when they are used.

but you should first examine the composition of oversized files, see which ones take up more space, and then decide what to do with them.

Menu