react-text-highlighter
Version:
Simple higher order component for React for text highlighting. Works nicely with React 0.14+ and stateless components
31 lines (29 loc) • 642 B
JavaScript
var webpack = require('webpack');
var path = require('path');
module.exports = {
module: {
loaders: [
{test: /\.js$/, loaders: ['babel-loader'], include: path.join(__dirname, 'source')}
]
},
output: {
library: 'ReactTextHighlighter',
libraryTarget: 'umd'
},
resolve: {
extensions: ['', '.js']
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
new webpack.optimize.UglifyJsPlugin({
compressor: {
screw_ie8: true,
warnings: false
}
})
]
};
;