react-highlight-words
Version:
React component to highlight words within a larger body of text
31 lines (29 loc) • 564 B
JavaScript
const path = require('path')
module.exports = {
devtool: 'source-map',
entry: [
'./src/index.js'
],
output: {
path: 'dist',
filename: '[name].js',
libraryTarget: 'commonjs2',
library: 'redux-search'
},
plugins: [
],
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
include: path.join(__dirname, 'src')
},
{
test: /\.css$/,
loaders: ['style', 'css?modules&importLoaders=1', 'cssnext'],
exclude: path.join(__dirname, 'node_modules')
}
]
}
}