精简umi react依赖,缩减镜像至760M左右

This commit is contained in:
whyour 2021-03-22 13:30:17 +08:00
parent 3e8a5bd74c
commit ad513d1eae
2 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,6 @@ import { defineConfig } from 'umi';
export default defineConfig({
hash: true,
layout: false,
locale: {},
nodeModulesTransform: {
type: 'none',
},

View File

@ -24,7 +24,7 @@
},
"dependencies": {
"@ant-design/pro-layout": "^6.5.0",
"@umijs/preset-react": "1.x",
"@umijs/plugin-antd": "^0.9.1",
"body-parser": "^1.19.0",
"celebrate": "^13.0.3",
"codemirror": "^5.59.4",
@ -62,8 +62,8 @@
"prettier": "^2.2.0",
"react": "17.x",
"react-dom": "17.x",
"ts-node": "^9.0.0",
"typescript": "^4.1.2",
"yorkie": "^2.0.0",
"ts-node": "^9.0.0"
"yorkie": "^2.0.0"
}
}