Commit a0da5078 authored by 陈帅's avatar 陈帅

fix config lint error

parent 3a08a00f
// https://umijs.org/config/
const os = require('os');
const pageRoutes = require('./router.config');
const webpackplugin = require('./plugin.config');
const defaultSetting = require('../src/defaultSetting');
......@@ -20,7 +21,7 @@ export default {
},
dynamicImport: true,
polyfills: ['ie11'],
...(!process.env.TEST && require('os').platform() === 'darwin'
...(!process.env.TEST && os.platform() === 'darwin'
? {
dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'],
hardSource: true,
......@@ -60,9 +61,8 @@ export default {
.map(a => a.replace(/([A-Z])/g, '-$1'))
.map(a => a.toLowerCase());
return `antd-pro${arr.join('-')}-${localName}`.replace(/--/g, '-');
} else {
return localName;
}
return localName;
},
},
manifest: {
......
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