.webpackrc.js 598 Bytes
Newer Older
niko's avatar
niko committed
1 2 3 4
const path = require('path');

export default {
  entry: 'src/index.js',
5
  extraBabelPlugins: [['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }]],
niko's avatar
niko committed
6 7 8 9 10
  env: {
    development: {
      extraBabelPlugins: ['dva-hmr'],
    },
  },
11 12 13 14 15
  externals: {
    '@antv/data-set': 'DataSet',
    bizcharts: 'BizCharts',
    rollbar: 'rollbar',
  },
niko's avatar
niko committed
16
  alias: {
jim's avatar
jim committed
17
    components: path.resolve(__dirname, 'src/components/'),
niko's avatar
niko committed
18 19 20 21 22 23
  },
  ignoreMomentLocale: true,
  theme: './src/theme.js',
  html: {
    template: './src/index.ejs',
  },
jim's avatar
jim committed
24
  disableDynamicImport: true,
niko's avatar
niko committed
25 26 27
  publicPath: '/',
  hash: true,
};