简体   繁体   English

如何分叉为自定义构建创建React App

[英]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.

相关问题 更新后的 Create-React-App 不再构建 - Updated Create-React-App no longer builds 如何在create-react-app中禁用CSS构建而不弹出? - How can I disable CSS builds in create-react-app without ejecting? 如何使用带有自定义模板的 Create React App? - How use Create React App with custom template? 如何在没有多个构建的情况下将 React 应用程序部署到多个环境? - How to deploy a react app to mutiple environments without multiple builds? 如何在Create-react-app应用程序中包含自定义脚本文件 - How to include custom script files in Create-react-app application 如何在 React 创建应用程序中包含自定义 JS 文件 - How to include custom JS files in to React create app 如何以root用户身份使用create-react-app更新自定义GitHub Pages - how to update a custom GitHub Pages with create-react-app as root Create React App是否使用react-router和firebase构建空文档(黑屏)? - Create React App builds empty document (blank screen) with react-router and firebase? 如何在我的应用程序上创建自定义键盘反应原生? - How to create custom keyboard on my app react native? 如何使用带有自定义环境变量的create-react-app构建? - How to use create-react-app build with custom enviroment variables?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM