官术网_书友最值得收藏!

The yarn eject command

Removes Create React App scripts and preset configurations and copies build dependencies, configuration files, and scripts into the app directory. If you do this, you can't go back to using Create React App on your project!

For this one, it is worth taking a look at what the documentation says for this command. In layman's terms, this turns your project from a Create React App project, turns it into a Webpack configuration, and removes a lot of details of Create React App and the React Scripts project that essentially hides some of the details from you. A similar concept would be buying a computer pre-built versus assembling it yourself (or reassembling it). You may start off wanting everything all put together for you, but maybe some day you'll want to add some more RAM or replace the video card, at which point you'll have to open up what was previously a black box to enable you to configure things further!

This is also something you might do if you need to go outside of the confines of the default project structure and configuration that you get from a base project. This will allow you to turn it back into a standard Webpack project and add new libraries, change the defaults and baseline details, or go even further and swap out other core components.

主站蜘蛛池模板: 荥经县| 昭通市| 长海县| 台州市| 周口市| 兰考县| 巴林右旗| 朝阳县| 运城市| 韩城市| 五大连池市| 金乡县| 桦甸市| 台湾省| 米易县| 休宁县| 大港区| 瑞安市| 祁门县| 马关县| 翁牛特旗| 谢通门县| 铜山县| 老河口市| 丰台区| 隆回县| 尼勒克县| 通河县| 富顺县| 福海县| 利辛县| 枝江市| 西吉县| 偏关县| 衢州市| 原阳县| 淮滨县| 那曲县| 琼结县| 祥云县| 四会市|