AntDesign (React) Learn -13 UMI use templates provided antd

1, UMI provides a visual antd default templates can be added directly to the project with modifications

For example, to add a personal center to the project

2. Select the individual centers, OK

 

 3, success

 

 4, open the project

 

5, Route files can be automatically added

 

 6, run error

 

 

7, installation

 

 8, can not find style.less

 

安装less模块
npm install --save-dev less-loader less

 

 9, type.d.ts increase

declare module '*.css';
declare module "*.png";
declare module '*.less';
10, a position to modify the routing

 

 11, running

 

 

Guess you like

Origin www.cnblogs.com/zhaogaojian/p/12293628.html