- 配置 config
- 使用配置式路由抽离路由文件
- tsconfig.json 开启装饰器语法
起步
- npx @umijs/create-umi-app ( 墙裂推荐!!!)
- yarn create @umijs/umi-app
安装依赖
- cnpm (首选)
- yarn
启动
npm run start
配置
- .umirc
- config/config.js
1 | import { defineConfig } from "umi"; |
config/routes.js
1 | export default [ |
I'm so cute. Please give me money.
- Post link: https://blog.gaocaipeng.com/2020/08/09/fiag3p/
- Copyright Notice: All articles in this blog are licensed under unless otherwise stated.