'use strict';
const packageVersion = require('./package.json').version;
const path = require('path');
const webpack = require('webpack');

let config = require('./webpack.development.config.js');
config.entry = path.resolve(__dirname, 'src/index.js');
delete config.devtool;
delete config.watch;
delete config.output.publicPath;
config.plugins = config.plugins.concat([
  new webpack.DefinePlugin({
    'process.env': {
      'NODE_ENV': '"production"'
    }
  }),
  new webpack.optimize.DedupePlugin(),
  new webpack.optimize.UglifyJsPlugin({
    compressor: {
      warnings: false,
      screw_ie8: true
    },
    comments: false
  }),
  new webpack.optimize.OccurenceOrderPlugin()
]);

module.exports = config;

'use strict';
const packageVersion = require('./package.json').version;
const path = require('path');
const webpack = require('webpack');

let config = require('./webpack.development.config.js');
config.entry = path.resolve(__dirname, 'src/index.js');
delete config.devtool;
delete config.watch;
delete config.output.publicPath;
config.plugins = config.plugins.concat([
  new webpack.optimize.DedupePlugin(),
  new webpack.optimize.UglifyJsPlugin({
    compressor: {
      warnings: false,
      screw_ie8: true
    },
    comments: false
  }),
  new webpack.optimize.OccurenceOrderPlugin()
]);

module.exports = config;

Fix "getDefaultProps" warning appearing after update to react@16.x.x
Fix "getDefaultProps" warning appearing after update to react@16.x.x
