Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/little-buddy/craco-react-webapp-template
基于 craco 自定义配置 create-react-app 模版
https://github.com/little-buddy/craco-react-webapp-template
Last synced: 21 days ago
JSON representation
基于 craco 自定义配置 create-react-app 模版
- Host: GitHub
- URL: https://github.com/little-buddy/craco-react-webapp-template
- Owner: little-buddy
- License: mit
- Created: 2023-08-02T09:36:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-23T18:29:03.000Z (over 1 year ago)
- Last Synced: 2024-10-29T20:11:29.306Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.28 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 基于 craco 自定义配置 create-react-app 模版
### Thanks
Extends [ChrisUser/cra-template-complete-web-app](https://github.com/ChrisUser/cra-template-complete-web-app)
### 执行命令
| 命令 | 作用 |
| ------------- | ------------------- |
| yarn start | 启动开发 |
| yarn test | 启动测试 |
| yarn lint | eslint 检查 |
| yarn lint:fix | eslint 修复 |
| yarn prettier | prettier 检查 |
| yarn format | prettier 修复 |
| yarn analyze | 分析bundler体积大小 |### 对于第三方库的抽离
Step1
```
在 externals 里面声明
```Step2
```
在 htmlWebpackPlugin -> cdn 内配置对应的 js 和 css 链接
```Then
```
打包的时候就会自动注入
```### IMPORTANT!!!
```
只要路由缓存完成,React系的开发就打开了新世界的大门~~
```