Browse Source
* alias ant-design-pro * fixed lint * change alias ant-design-pro/lib -> components * change alias ant-design-pro/lib -> componentspull/1076/merge
committed by
GitHub
21 changed files with 177 additions and 174 deletions
@ -1,22 +0,0 @@ |
|||
{ |
|||
"entry": "src/index.js", |
|||
"extraBabelPlugins": [ |
|||
"transform-decorators-legacy", |
|||
["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }] |
|||
], |
|||
"env": { |
|||
"development": { |
|||
"extraBabelPlugins": [ |
|||
"dva-hmr" |
|||
] |
|||
} |
|||
}, |
|||
"ignoreMomentLocale": true, |
|||
"theme": "./src/theme.js", |
|||
"html": { |
|||
"template": "./src/index.ejs" |
|||
}, |
|||
"publicPath": "/", |
|||
"disableDynamicImport": true, |
|||
"hash": true |
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
const path = require('path'); |
|||
|
|||
export default { |
|||
entry: 'src/index.js', |
|||
extraBabelPlugins: [ |
|||
'transform-decorators-legacy', |
|||
['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }], |
|||
], |
|||
env: { |
|||
development: { |
|||
extraBabelPlugins: ['dva-hmr'], |
|||
}, |
|||
}, |
|||
alias: { |
|||
'components': path.resolve(__dirname, 'src/components/'), |
|||
}, |
|||
ignoreMomentLocale: true, |
|||
theme: './src/theme.js', |
|||
html: { |
|||
template: './src/index.ejs', |
|||
}, |
|||
publicPath: '/', |
|||
disableDynamicImport: true, |
|||
hash: true, |
|||
}; |
|||
Loading…
Reference in new issue