Commit a0da5078 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

fix config lint error

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