https://next.umijs.org/
https://github.com/umijs/umi-next
image.png

umi4创建项目

https://umijs.org/docs/tutorials/getting-started

  1. mkdir umi-project
  2. cd umi-project
  3. pnpm dlx create-umi@latest
  4. # ✔ Pick Umi App Template › Ant Design Pro
  5. # ✔ Pick Npm Client › pnpm
  6. # ✔ Pick Npm Registry › taobao
  7. # 启动项目,localhost:8000
  8. pnpm dev
  9. # 构建项目,默认会生成到 ./dist 目录下
  10. umi build
  • 选择 pnpm + taobao 源,速度提升明显
  • 安装成功后会自动执行 umi setup 做一些文件预处理工作

pnpm dev 如果没有构建好,会出现
image.png