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

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