umi + dva + antd react building projects (build component-based development projects)
1. official website install node.js (and ensure that node version is 10.13 or more)
2. to ensure a successful installation npm or the Yarn
3.npm the Yarn tyarn i -g (domestic sources)
4. If you do not npx, need to install it, execute commands under the Yarn, Ltd. Free Join the Add NPX node_modules
5. start building the project to distinguish between versions:
After umi 3.0 is the latest version
mkdir myapp && cd myapp (new construction projects directory and enter the project directory)
yarn create @ umijs / umi-app (created by the project official tool)
Yarn (installation dependent)
yarn start (boot project)
The default scaffolding built @ umijs / preset-react, contains common functional layout, permissions, internationalization, dva, simple data streams. For example you want ant-design-pro layout editing .umirc.ts configuration layout: {}
yarn build (build) to deploy release ---> the dist directory deployed to the server
3.0 The following release ---> reference https://umijs.org/zh-CN/docs/upgrade-to-umi-3 configuration
Umi 2.x version upgrade to Umi 3.x version
mkdir myapp && cd myapp
yarn create umi
Select the project ----> choose whether to use TypeScript ----> then select the function you need antd dva etc.
Yarn (installation dependent)
yarn start (boot project)
More network configuration refer to the official documentation https://umijs.org/zh-CN/docs/getting-started