[英]How To Fork Create React App For Custom Builds
I've been doing a lot of react development with my own custom build setup with webpack. 我一直在使用我自己的webpack自定义构建设置进行大量的反应开发。 As my projects grow the build become slower and I'm not always able to tweak my builds to be more performant. 随着我的项目的增长,构建速度会变慢,而且我并不总是能够调整构建以提高性能。 Also having all my dev dependencies live within the project can become messy and distracting. 将我所有的开发依赖项都存在于项目中也会变得混乱和分散注意力。 I've always loved create react app for it ease of use, performance, and community. 我一直喜欢创建React应用程序,因为它易于使用,性能出色且具有社区性。 I recently forked the repo and created my own custom react-script and have enjoyed the minimalism of my packages only focusing on dependencies. 最近,我分叉了仓库,并创建了自己的自定义react-script,并且享受了仅关注于依赖项的程序包的简约性。 I want to customize scripts more, adding new ones that analyze code or optimize assets. 我想更多地自定义脚本,添加新的脚本来分析代码或优化资产。 I have some knowledge of node and processes but not enough to full comfortable tweaking chunks of code. 我对节点和进程有一定的了解,但不足以完全舒适地调整代码块。
It would be awesome if anyone could recommend articles or lectures that pertain specifically to destructuring create react app or/and working with node cli code. 如果有人可以推荐与解构有关的文章或讲座,那就太棒了,它们可以创建react app或/和使用node cli代码。 I appreciate the help! 感谢您的帮助!
react-app-rewired could give you a better understanding of the CRA React-app-rewired可以让您更好地了解CRA
https://github.com/timarney/react-app-rewired https://github.com/timarney/react-app-rewired
You can use rescripts for advance CRA Config, go through the readme. 您可以将脚本用于高级CRA Config,请阅读自述文件。
https://github.com/harrysolovay/rescripts https://github.com/harrysolovay/rescripts
crisp-react is a boilerplate project that consists of a sample React app with multiple SPAs and optimized script bundles coupled with an Express backend. crisp-react是一个样板项目,由带有多个SPA和优化脚本包以及Express后端的示例React应用组成。 On conrary to CRA the project does not use react-scripts under the hood. 根据CRA,该项目不使用幕后脚本。 The client and backend are separated into independent subprojects you can build, run, debug, test and lint. 客户端和后端分为独立的子项目,您可以构建,运行,调试,测试和皮棉。 Maybe the client can meet your needs. 也许客户可以满足您的需求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.