What is the purpose of ng eject?

后端 未结 2 694
野性不改
野性不改 2021-02-03 23:34

The documentation is very brief with this topic:

ng eject ejects your app and output the proper webpack configuration and scripts

2条回答
  •  梦谈多话
    2021-02-04 00:28

    ng eject basically get-rid of angular cli scripts and introduce webpack scripts in package.json, underlying webpack.config.js file mainly for comprehensive way to manage the project and it will be completely our responsibility to manage the project configurations after this.

    A comparison of package.json scripts before and after is below,

    check https://medium.jonasbandi.net/to-use-angular-cli-or-not-187f87d0b550 for further read.

提交回复
热议问题