Commit fc1ac964 authored by 陈帅's avatar 陈帅

Revert "migrate to umi@2-beta"

This reverts commit 5c2df04b.
parent 9ed1581a
......@@ -7,17 +7,8 @@ const path = require('path');
export default {
// add for transfer to umi
plugins: [
[
'umi-plugin-react',
{
dva: true,
antd: true,
locale: {
default: 'zh-CN', // default zh-CN
baseNavigator: true, // default true, when it is true, will use `navigator.language` overwrite default
},
},
],
'umi-plugin-dva',
'umi-plugin-locale',
// TODO 决定是否使用约定路由,如果使用配置路由那么 umi-plugin-routes 可以去掉了
// [
// 'umi-plugin-routes',
......@@ -29,12 +20,20 @@ export default {
// },
// ],
],
locale: {
enable: true, // default false
default: 'zh-CN', // default zh-CN
baseNavigator: true, // default true, when it is true, will use `navigator.language` overwrite default
antd: true, // use antd, default is true
},
// 路由配置
routes: pageRoutes,
theme: {
'card-actions-background': '#f5f8fa',
},
// entry: 'src/index.js', // TODO remove
extraBabelPlugins: [['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }]],
env: {
development: {
extraBabelPlugins: ['dva-hmr'],
......@@ -71,6 +70,7 @@ export default {
return `antd-pro${arr.join('-')}-${localName}`.replace(/--/g, '-');
},
},
disableFastClick: true,
manifest: {
name: 'ant-design-pro',
background_color: '#FFF',
......
......@@ -6,10 +6,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ant Design Pro</title>
<link rel="manifest" href="/asset-manifest.json">
<link rel="manifest" href="/static/manifest.json">
<link rel="icon" href="/favicon.png" type="image/x-icon">
<script src="https://cdn.bootcss.com/rollbar.js/2.4.0/rollbar.min.js"></script>
<script src="https://gw.alipayobjects.com/os/antv/assets/data-set/0.8.7/data-set.min.js"></script>
<script src="/service-worker.js"></script>
</head>
<body>
......@@ -24,4 +25,5 @@
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js"></script>
</body>
</html>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment