.webpackrc.js 627 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
  externals: {
    '@antv/data-set': 'DataSet',
    rollbar: 'rollbar',
  },
niko's avatar
niko committed
15
  alias: {
jim's avatar
jim committed
16
    components: path.resolve(__dirname, 'src/components/'),
niko's avatar
niko committed
17 18 19 20 21 22
  },
  ignoreMomentLocale: true,
  theme: './src/theme.js',
  html: {
    template: './src/index.ejs',
  },
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
23 24 25
  lessLoaderOptions: {
    javascriptEnabled: true,
  },
jim's avatar
jim committed
26
  disableDynamicImport: true,
niko's avatar
niko committed
27 28 29
  publicPath: '/',
  hash: true,
};