koot
koot copied to clipboard
Koot是基于React和Koa的WEB全栈技术解决方案。
## 测试 #### 同构 - [x] 数据同构 - [x] `title`、`meta` 标签正确性 - [x] 静态文件访问,确保没有 404 - [x] 所有 Webpack 结果资源的访问,确保没有 404 - [ ] 有 `extract.all.[*].css` - [ ] `inject`...
```javascript // transform-config-client.js result.entry.client = [ 'react-hot-loader/patch', ...result.entry.client ]; // ------------------ if (!createDll) { if (typeof result.resolve !== 'object') result.resolve = {}; if (typeof result.resolve.alias !== 'object') result.resolve.alias = {};...
``` ❗ 优先项 ❕ 次级优先项 ❔ 需讨论 ``` ## 核心 - [ ] 所有命令终止时清除本次生成的临时文件,如项目配置文件、flag文件等 - 参考 `lerna` - [ ] 添加特征标识符 - [ ] 爬虫:识别特征标识符,统级使用 koot 的公开站点 ## 核心 `处理配置`...
- 官方方案: `Suspense` - 第三方库: [React Loadable](https://github.com/jamiebuilds/react-loadable)
Google I/O 演讲: https://youtu.be/k-A2VfuUROg    
 root-> div -> app 多了一层神奇的 div 结构
```javascript // /koot/libs/validate-config/index.js L64 /** @type {Object} 完整配置 */ const kootConfig = await (async () => { const config = require(fileConfig) if (typeof config === 'function') return await config() if...