|
|
@@ -13,9 +13,6 @@ const plugins = [
|
|
|
dva: {
|
|
|
hmr: true,
|
|
|
},
|
|
|
- targets: {
|
|
|
- ie: 11,
|
|
|
- },
|
|
|
locale: {
|
|
|
enable: true, // default false
|
|
|
default: 'zh-CN', // default zh-CN
|
|
|
@@ -57,12 +54,12 @@ if (process.env.APP_TYPE === 'site') {
|
|
|
export default {
|
|
|
// add for transfer to umi
|
|
|
plugins,
|
|
|
- targets: {
|
|
|
- ie: 11,
|
|
|
- },
|
|
|
define: {
|
|
|
APP_TYPE: process.env.APP_TYPE || '',
|
|
|
},
|
|
|
+ targets: {
|
|
|
+ ie: 11,
|
|
|
+ },
|
|
|
// 路由配置
|
|
|
routes: pageRoutes,
|
|
|
// Theme for antd
|
|
|
@@ -97,7 +94,7 @@ export default {
|
|
|
}
|
|
|
const match = context.resourcePath.match(/src(.*)/);
|
|
|
if (match && match[1]) {
|
|
|
- const antdProPath = match[1].replace('.less', '');
|
|
|
+ const antdProPath = match[1].replace('.less', '');
|
|
|
const arr = slash(antdProPath)
|
|
|
.split('/')
|
|
|
.map(a => a.replace(/([A-Z])/g, '-$1'))
|