- Create React App 2 Quick Start Guide
- Brandon Richey
- 254字
- 2021-07-02 12:53:25
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!
- JBoss Weld CDI for Java Platform
- 微服務設計(第2版)
- The Supervised Learning Workshop
- Cocos2d-x游戲開發:手把手教你Lua語言的編程方法
- Manga Studio Ex 5 Cookbook
- 技術領導力:程序員如何才能帶團隊
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- Webpack實戰:入門、進階與調優
- HTML5權威指南
- Mudbox 2013 Cookbook
- 軟件工程與UML案例解析(第三版)
- Python Digital Forensics Cookbook
- 循序漸進Vue.js 3前端開發實戰
- 趣學數據結構