【文件属性】:
文件名称:create-react-app::flexed_biceps:学习并复制create-react-app
文件大小:63KB
文件格式:ZIP
更新时间:2021-05-26 10:42:56
create-react-app JavaScript
Create React App 源码揭秘
目录
创建package.json
安装依赖项
拷贝模板
查看效果
packages/cra-template
packages/cra-template--typescript
packages/react-scripts
react-scripts build
react-scripts start
react-scripts小结
packages/react-dev-utils
PnpWebpackPlugin
ModuleScopePlugin
InterpolateHtmlPlugin
WatchMissingNodeModulesPlugin
总结
背景
图片失效可前往juejin查看。
Create React App是一个官方支持的创建React单页应用程序的脚手架。它提供了一个零配置的现代化配置设置。
平时工作中一部分项目使用的
【文件预览】:
create-react-app-main
----.gitignore(215B)
----package.json(342B)
----packages()
--------cra-template()
--------react-scripts()
--------create-react-app()
----lerna.json(111B)
----README.md(31KB)
----plugins-example()
--------ModuleScopePlugin()
--------PnpWebpackPlugin()
--------README.md(0B)
--------InterpolateHtmlPlugin()
--------WatchMissingNodeModulesPlugin()