1.配置ant-design的按需加載,連接爲:ant.design/docs/react/…;react
2.不須要執行npm run eject命令,執行如下兩步:npm
(1)執行npm i @babel/plugin-proposal-decorators -D命令;babel
(2)將config-override.js寫入下圖所示代碼:app