tinper-bee
Version:
React Components living for enterprise-class pc backend application
36 lines (34 loc) • 703 B
JavaScript
var webpack = require('webpack');
var path = require('path');
module.exports = {
cache: false,
entry: {
index: './index',
},
output: {
path: path.join(process.cwd(), './build'),
filename: 'tinper-bee.js',
library: 'tinper-bee',
libraryTarget: 'umd',
},
module: {},
externals: {
react: {
root: 'React',
var: 'React',
commonjs: 'react',
commonjs2: 'react',
amd: 'react',
},
'react-dom': {
root: 'ReactDOM',
var: 'ReactDOM',
commonjs: 'react-dom',
commonjs2: 'react-dom',
amd: 'react-dom',
},
},
plugins: [
new webpack.optimize.DedupePlugin(),
],
};