react-horizontal-bar-chart
Version:
Simple horizontal bar chart react component, with inline tooltips
58 lines (47 loc) • 1.09 kB
JavaScript
/*
* Webpack distribution configuration
*
* This file is set up for serving the distribution version. It will be compiled to dist/ by default
*/
;
var webpack = require('webpack');
module.exports = {
output: {
publicPath: '/assets/',
path: 'examples/assets/',
filename: 'main.js'
},
debug: false,
devtool: false,
entry: './src/scripts/examples/<%= pkg.mainInput %>.jsx',
stats: {
colors: true,
reasons: false
},
plugins: [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin(),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.AggressiveMergingPlugin()
],
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
preLoaders: [{
test: '\\.js$',
exclude: 'node_modules',
loader: 'jshint'
}],
loaders: [{
test: /\.jsx$/,
loader: 'jsx-loader?harmony'
}, {
test: /\.css$/,
loader: 'style-loader!css-loader'
}, {
test: /\.(png|jpg|svg|eot|ttf|woff)$/,
loader: 'url-loader?limit=8192'
}]
}
};