Home  >  Q&A  >  body text

javascript - After using ng build --prod --aot to package angular2, the js is still very large. What should I do?

  1. Use angular2 to package and compile files. After aot compilation in the production environment, js still has 1.6M

  2. Didn’t the official say that it can be reduced to less than a few hundred k?

天蓬老师天蓬老师2662 days ago1238

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-07-05 10:43:43

    Your aot parameter probably failed

    reply
    0
  • Cancelreply