Commit a5d19797 authored by Shuai Chen's avatar Shuai Chen

delete redundant targets

parent d5d096eb
...@@ -13,9 +13,6 @@ const plugins = [ ...@@ -13,9 +13,6 @@ const plugins = [
dva: { dva: {
hmr: true, hmr: true,
}, },
targets: {
ie: 11,
},
locale: { locale: {
enable: true, // default false enable: true, // default false
default: 'zh-CN', // default zh-CN default: 'zh-CN', // default zh-CN
...@@ -57,12 +54,12 @@ if (process.env.APP_TYPE === 'site') { ...@@ -57,12 +54,12 @@ if (process.env.APP_TYPE === 'site') {
export default { export default {
// add for transfer to umi // add for transfer to umi
plugins, plugins,
targets: {
ie: 11,
},
define: { define: {
APP_TYPE: process.env.APP_TYPE || '', APP_TYPE: process.env.APP_TYPE || '',
}, },
targets: {
ie: 11,
},
// 路由配置 // 路由配置
routes: pageRoutes, routes: pageRoutes,
// Theme for antd // Theme for antd
...@@ -97,7 +94,7 @@ export default { ...@@ -97,7 +94,7 @@ export default {
} }
const match = context.resourcePath.match(/src(.*)/); const match = context.resourcePath.match(/src(.*)/);
if (match && match[1]) { if (match && match[1]) {
const antdProPath = match[1].replace('.less', ''); const antdProPath = match[1].replace('.less', '');
const arr = slash(antdProPath) const arr = slash(antdProPath)
.split('/') .split('/')
.map(a => a.replace(/([A-Z])/g, '-$1')) .map(a => a.replace(/([A-Z])/g, '-$1'))
......
import * as React from 'react';
export interface ILoginTabProps {
key?: string;
tab?: React.ReactNode;
}
export default class LoginTab extends React.Component<ILoginTabProps, any> {}
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