javascript - angular-cli uses ng build --prod and ng build --prod --aot to package files with the same size?
天蓬老师
天蓬老师 2017-07-05 10:39:00
0
2
874
  1. The size of my complete project after compilation using ng build --prod is 1713k, as shown in the picture

  2. After using ng build --prod --aot the size is still 1713k;

  3. --Does aot need other configuration parameters to be effective?

4. In other words, before using the --aot parameter, tree shaking optimization is also required?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
曾经蜡笔没有小新

--prod turns on AOT, you don't need to pass both options. See this section of the docs: https://github.com/angular/an...
This is the answer on github, no Know if it is useful.

世界只因有你

--prod turns on --aot by default, so using --prod and --prod --aot are the same

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template