summaryrefslogtreecommitdiffstats
path: root/packages/ui/webpack.config.js
blob: cc3370359bc7d13c581d5be3f46a6ef6e5b5dd2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const path = require('path');
const baseConfig = require('../../webpack.config.base')(__dirname);

module.exports = Object.assign({}, baseConfig, {
  output: {
    filename: 'index.js',
    path: path.join(__dirname, 'lib'),
    libraryTarget: 'commonjs2',
  },
  externals: {
    react: 'react',
    reactDom: 'react-dom',
    classnames: 'classnames',
    lodash: 'lodash',
    mobx: 'mobx',
    mobxReact: 'mobx-react',
    reactJss: 'react-jss',
  },
});