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

The yarn build command

The function of this command is that it bundles the app into static files for production.

Running build takes the application and turns it into something more production-ready. What does that mean? Well, if you're already pretty comfortable with what tools such as webpack and brunch do in terms of turning them into production sites, you basically already know what this accomplishes. If, on the other hand, this all sounds incredibly confusing to you, I'm going to take a little bit of time and explain it in slightly less vague terms.

Essentially, most browsers can't handle code written for Create React App projects just by default. There is a lot of work that needs to be done in taking the code and translating it into something that makes more sense for the browsers, ensuring that it doesn't need to rely on help to interpret everything. From there, the code is also minified! It shrinks things down by renaming functions and variables, removing white space where it can, and doing small optimizations here and there until the code is reduced to a very clean and usable version. Everything is compressed and the file is condensed down as much as it possibly can to reduce the download time (which is important if you're targeting a mobile audience that may not have great internet speed).


Minified means exactly what it sounds like. It is the condensing of code into much smaller values, making it unreadable to humans but highly digestible for computers!
主站蜘蛛池模板: 太仆寺旗| 榆林市| 鹤岗市| 威信县| 大埔区| 榆树市| 科尔| 清新县| 曲水县| 双柏县| 察隅县| 桂林市| 寿光市| 海门市| 吉木乃县| 庆安县| 嘉黎县| 定襄县| 青海省| 苗栗县| 上犹县| 锦屏县| 渭源县| 延吉市| 汶川县| 图木舒克市| 汉寿县| 六枝特区| 富阳市| 连云港市| 宜兰市| 静海县| 宝丰县| 南康市| 辰溪县| 富民县| 毕节市| 万州区| 托里县| 杭州市| 娱乐|