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