UNPKG

@kabbi/react-redux-form

Version:
30 lines (23 loc) 642 B
/* eslint strict:0 */ 'use strict'; 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;