create-react-app-read:解析create-react-app源码-源码解析

上传者: 42131261 | 上传时间: 2021-03-24 21:05:35 | 文件大小: 33KB | 文件类型: ZIP
解析create-react-app脚手架原始码 配置ts环境 安装@types/react @types/react-dom , typescript awesome-typescript-loader等插件 在webpack.config.js中配置解析.tsx文件的加载器: { test: /\.tsx?$/, loader: "awesome-typescript-loader" }, 注:现在已经不需要awesome-typescript-loader了,babel7.x以上已经支持编译ts了 项目根目录下新建tsconfig.json文件,并配置基础项: { " compilerOptions " : { " outDir " : " ./dist/ " , " sourceMap " : true , " noImp

文件下载

资源详情

[{"title":"( 29 个子文件 33KB ) create-react-app-read:解析create-react-app源码-源码解析","children":[{"title":"create-react-app-read-master","children":[{"title":"public","children":[{"title":"index.html <span style='color:#111;'> 287B </span>","children":null,"spread":false}],"spread":true},{"title":"a.ts <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"a.js <span style='color:#111;'> 505B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.tsx <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"valueUtil.ts <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"components","children":[{"title":"Table.tsx <span style='color:#111;'> 447B </span>","children":null,"spread":false},{"title":"Header.tsx <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":true},{"title":"context","children":[{"title":"tableContext.tsx <span style='color:#111;'> 280B </span>","children":null,"spread":false}],"spread":true},{"title":"App.tsx <span style='color:#111;'> 985B </span>","children":null,"spread":false},{"title":"interface.ts <span style='color:#111;'> 838B </span>","children":null,"spread":false},{"title":"interface.d.ts <span style='color:#111;'> 43B </span>","children":null,"spread":false}],"spread":true},{"title":".babelrc <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"config","children":[{"title":"env.js <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"webpack.config.js <span style='color:#111;'> 32.57KB </span>","children":null,"spread":false},{"title":"webpackDevServer.config.js <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"modules.js <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"paths.js <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"build","children":[{"title":"build.js <span style='color:#111;'> 6.91KB </span>","children":null,"spread":false},{"title":"start.js <span style='color:#111;'> 5.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 780B </span>","children":null,"spread":false},{"title":"dist","children":[{"title":"index.html <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"asset-manifest.json <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"service-worker.js <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"precache-manifest.be1f86c21f49f7ec81790b73c776b240.js <span style='color:#111;'> 349B </span>","children":null,"spread":false},{"title":"static","children":[{"title":"js","children":[{"title":"main.d55e0b69.chunk.js <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"runtime~main.7ae5db7b.js <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 13B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明