Zac Anger's Blog

React Performance

14 May, 2016
// stuff
plugins : [
  new webpack.DefinePlugin({
    'process.env.NODE_ENV' : JSON.stringify('production')
  })
, new webpack.optimize.UglifyJsPlugin({
    compress : {
      warnings : false
    }
  })
]
// stuff
"babel": { "env": { "production": { "plugins": [
  "transform-react-constant-elements",
  "transform-react-inline-elements"
] } } }

Submit a bug report