You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
552 B
31 lines
552 B
const path = require('path');
|
|
|
|
export default {
|
|
entry: 'src/index.js',
|
|
extraBabelPlugins: [
|
|
[
|
|
'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,
|
|
};
|
|
|