react-categorized-tag-input-3
Version:
React.js component for making tag autocompletion inputs with categorized results.
47 lines (39 loc) • 799 B
JavaScript
var webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
library: 'CategorizedTagInput',
libraryTarget: 'umd',
filename: 'categorized-tag-input.js'
},
externals: [
{
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
}
],
devtool: 'source-map',
module: {
loaders: [
{ test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel' }
]
},
node: {
Buffer: false
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
]
};