diff --git a/.umirc.js b/.umirc.js index b7a8b4fa..7369bcd0 100644 --- a/.umirc.js +++ b/.umirc.js @@ -19,6 +19,8 @@ export default { path: 'https://github.com/ant-design/ant-design-pro-layout', }, ], - dynamicImport: {}, + dynamicImport: { + loading: '@ant-design/pro-skeleton', + }, hash: true, }; diff --git a/package.json b/package.json index 3bbe8905..b6314745 100644 --- a/package.json +++ b/package.json @@ -93,6 +93,7 @@ "devDependencies": { "@ant-design/compatible": "^1.0.1", "@ant-design/dark-theme": "^2.0.2", + "@ant-design/pro-skeleton": "^1.0.0-beta.2", "@babel/core": "^7.8.3", "@babel/plugin-proposal-object-rest-spread": "^7.8.3", "@babel/preset-env": "^7.8.3",