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

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.

主站蜘蛛池模板: 和静县| 眉山市| 上栗县| 永定县| 邛崃市| 昌黎县| 古蔺县| 祁连县| 嵩明县| 陆川县| 宁陕县| 枝江市| 马边| 扬中市| 玉林市| 北流市| 西乌珠穆沁旗| 广宁县| 塔河县| 盖州市| 开化县| 任丘市| 扶绥县| 施秉县| 阳原县| 湄潭县| 施甸县| 辽宁省| 左权县| 泸定县| 墨玉县| 射洪县| 鄂尔多斯市| 准格尔旗| 什邡市| 英超| 章丘市| 麻阳| 济宁市| 揭西县| 彭阳县|