@kabbi/react-redux-form
Version:
Create Forms Easily with React and Redux
30 lines (23 loc) • 642 B
JavaScript
/* eslint strict:0 */
;
var path = require('path');
const webpack = require('webpack');
const baseConfig = require('./webpack.config.base');
const config = Object.create(baseConfig);
Object.assign(config, {
entry: path.join(__dirname, 'src/index.js'),
});
config.plugins = config.plugins.concat([
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production'),
}),
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({
compressor: {
screw_ie8: true,
warnings: false,
},
}),
]);
module.exports = config;