UNPKG

coreui

Version:

Platform Core UI

35 lines (33 loc) 634 B
const path = require('path'); module.exports = { devtool: 'eval', entry: ['./src/index.js'], output: { path: path.join(__dirname, 'dist'), filename: 'coreui.js', library: 'CoreUI', libraryTarget: 'umd', }, resolve: { extensions: ['', '.js'] }, module: { loaders: [ { exclude: /node_modules/, test: /\.js$/, loaders: ['babel'], }, ], }, externals: { react: { root: 'React', commonjs: 'react', commonjs2: 'react', }, 'react-dom': { root: 'ReactDOM', commonjs: 'react-dom', commonjs2: 'react-dom', } }, };